问题
I am trying to run this sample firebase project, but I keep getting this error in the browser console.
Lf {code: "auth/unauthorized-domain", message: "This domain (mail-demo-fcm.firebaseapp.com) is not…se console -> Auth section -> Sign in method tab."}
code: "auth/unauthorized-domain"
message: "This domain (mail-demo-fcm.firebaseapp.com) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab."
I have enabled Google in Authentication -> Sign-in Method as sign-in providers.
Am I missing something ?
A little guide will be helpful.
And I am using Firebase's free plan.
回答1:
You need to add domain mail-demo-fcm.firebaseapp.com to Authentication menu in Firebase at Authorized domains
回答2:
Below the sign-in method section, there is a Authorized domains section. I think you need to whitelist your domain there.
来源:https://stackoverflow.com/questions/48076968/firebase-auth-unauthorized-domain-domain-is-not-authorized