Description
Operating System
macOS Sequoia 15.5
Environment (if applicable)
Chrome 137.0.7151.120
Firebase SDK Version
11.9.1
Firebase SDK Product(s)
Auth
Project Tooling
Developing Google Chrome Extension with vite.
Detailed Problem Description
I think this is related to #7617
I changed my import to firebase/auth/web-extension as follows:
import {
sendSignInLinkToEmail,
signInWithEmailLink,
isSignInWithEmailLink,
signOut,
onAuthStateChanged,
} from 'firebase/auth/web-extension';
However, the following remotely hosted scripts are still included in the built code, which causes my Chrome Web Store submission to be rejected for violating the Manifest V3 policy against remote code:
gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});
The following is the violation notice I received.
Violation(s):
Violation reference ID: [Blue Argon](https://developer.chrome.com/docs/webstore/troubleshooting/#additional-requirements-for-manifest-v3)
Technical Requirements - Additional Requirements for Manifest V3:
Violation:
Including remotely hosted code in a Manifest V3 item.
Violating Content:
Code snippet: popup.js: https://apis.google.com/js/api.js , https://www.google.com/recaptcha/api.js , https://www.google.com/recaptcha/enterprise.js?render=
I suspect I’m missing something, but I have no idea how to prevent this.
Any advice or recommended approach would be greatly appreciated!
I'm also importing following from firebase
import { initializeApp } from 'firebase/app';
import { getAuth, connectAuthEmulator } from 'firebase/auth/web-extension';
import { getFirestore, connectFirestoreEmulator } from 'firebase/firestore';
import {
getFunctions,
connectFunctionsEmulator,
httpsCallable,
} from 'firebase/functions';
Thank you very much in advance!
Steps and code to reproduce issue
N/A