I add Firebase App Check with reCAPTCHA Enterprise in my vue3 project, and work well on mode devel. But when build on production, appcheck not working and return HTTP status: 500.
my appcheck config:
if (location.hostname === "127.0.0.1") {
self.FIREBASE_APPCHECK_DEBUG_TOKEN = true;
}
const appcheck = initializeAppCheck(app, {
provider: new ReCaptchaEnterpriseProvider(
import.meta.env.VITE_FIREBASE_RECAPTCHA_ENTERPRISE_KEY
),
isTokenAutoRefreshEnabled: true, // Set to true to allow auto-refresh.
});