Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox error on signInWithCustomToken with empty referer: auth/requests-from-referer-<empty>-are-blocked #8417

Open
CharlieDigital opened this issue Aug 9, 2024 · 3 comments

Comments

@CharlieDigital
Copy link

Operating System

Mac M1, macOS 14.5

Browser Version

Firefox 129.0

Firebase SDK Version

10.12.5

Firebase SDK Product:

Auth

Describe your project's tooling

Vue + Vite building a browser extension

Describe the problem

When making a call to signInWithCustomToken, Firebase auth receives an HTTP 403 from the identity endpoint with the following error:

image

This only occurs in Firefox and works as expected on Chrome.

Screenshot 2024-08-06 at 10 29 28 PM

Steps and code to reproduce issue

I have the code published in the following extensions (with minimal obfuscation):

Chrome version of the extension where everything works: https://chromewebstore.google.com/detail/turasapp/lpfijfdbgohlblnadiokliolkkeeblpo

Firefox version: https://addons.mozilla.org/en-US/firefox/addon/turas-app/

There is no functional difference in the output code.

May be related to this issue: #7997

@CharlieDigital CharlieDigital added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Aug 9, 2024
@jbalidiong jbalidiong added needs-attention and removed new A new issue that hasn't be categoirzed as question, bug or feature request labels Aug 12, 2024
@cabello
Copy link

cabello commented Sep 11, 2024

Facing similar issue with await signInWithCustomToken(auth, customFirebaseToken) on Windows 10 + Chrome 126 and 127.
We issue the token in the backend using a service account and then use signInWithCustomToken using the client side API that is configured with a browser key that is restricted for our sites.
I don't see the option to supply a referer in this case.

@dlarocque
Copy link
Contributor

Hi @CharlieDigital, it looks like https://addons.mozilla.org/en-US/firefox/addon/turas-app/ does not exist. Do you have another version we can take a look at?

@CharlieDigital
Copy link
Author

CharlieDigital commented Sep 13, 2024

Yup; I took it offline for the time being, but I've attached the compiled source here (largely identical except for the manifest):

turas-firefox-2024-09-14-16-39.zip

Appreciate any effort your team puts into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants