I’m encountering a persistent auth/requests-from-referer...-are-blocked
error with Firebase Authentication and I’m hoping someone might have an idea what else to check.
What I’ve Checked Repeatedly:
- Firebase Console > Authentication > Settings > Authorized domains:
- The hostname
firebase-studio-1748346784189.cluster-jbb3mjctu5cbgsi6hwq6u4btwe.cloudworkstations.dev
is definitely listed (nohttps://
, no port, no typos). - I’ve deleted and re-added it carefully.
localhost
is also there and works fine for local development.
- Google Cloud Console > APIs & Services > Credentials > API Key (used for client-side Firebase config):
- Application restrictions (HTTP referrers): Includes the full Cloud Workstation URL:
https://3000-firebase-studio-1748346784189.cluster-jbb3mjctu5cbgsi6hwq6u4btwe.cloudworkstations.dev
. - API restrictions: “Identity Toolkit API”, “Firebase Installations API”, “Firebase Realtime Database API”, and “Cloud Storage for Firebase API” are all enabled.
- Propagation & Cache: I’ve waited significant time (30-60+ minutes) after any config changes and always test in a new Incognito window with hard refreshes.
- SDK Init: Client-side logs confirm Firebase is initialized with the correct
authDomain
(bizzmaster-pro-3.firebaseapp.com
).
Despite these, the error specifically for the Cloud Workstation domain persists.
Has anyone encountered a similar situation where these settings appear correct but the error remains? Are there any other less obvious project settings or Google Cloud configurations that could be causing this specific referrer blocking for Firebase Authentication?
Any suggestions would be greatly appreciated!
Thanks!