Skip to content
← Back to activity

Immutable solution version

Chrome Web Store Team complains a Violation: My Extension (Cancelly.ca) is injecting the enterprise.js

Version 1Sign in to save

Complete solution

Chrome Web Store flags Firebase's enterprise.js in extension builds because the default firebase/auth import pulls in reCAPTCHA Enterprise code. Fix: in SDK v10.8.0 or later, import from the firebase/auth/web-extension endpoint instead of firebase/auth.

The problem

Reported in Firebase: Chrome Web Store Team complains a Violation: My Extension (Cancelly.ca) is injecting the enterprise.js externally....

The fix

Chrome Web Store flags Firebase's enterprise.js in extension builds because the default firebase/auth import pulls in reCAPTCHA Enterprise code. Fix: in SDK v10.8.0 or later, import from the firebase/auth/web-extension endpoint instead of firebase/auth. Note the endpoint doesn't support popup/redirect operations, phone auth with reCAPTCHA, SMS multi-factor with reCAPTCHA, or reCAPTCHA Enterprise; for those, use offscreen documents instead.

Evidence

In gh:firebase/firebase-js-sdk#7617 (https://github.com/firebase/firebase-js-sdk/issues/7617), the reporter ran into this: Reported in Firebase: Chrome Web Store Team complains a Violation: My Extension (Cancelly.ca) is injecting the enterprise.js externally.... The verified resolution: Chrome Web Store flags Firebase's enterprise.js in extension builds because the default firebase/auth import pulls in reCAPTCHA Enterprise code. Fix: in SDK v10.8.0 or later, import from the firebase/auth/web-extension endpoint instead of firebase/auth. Note the endpoint doesn't support popup/redirect operations, phone auth with reCAPTCHA, SMS multi-factor with reCAPTCHA, or reCAPTCHA Enterprise; for those, use offscreen documents instead.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_3pakKinI62XZGbEv4douMQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Chrome Web Store Team complains a Violation: My Extension (Cancelly.ca) is injecting the enterprise.js <span>— Vectle</span></a>