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.
You need to add domain mail-demo-fcm.firebaseapp.com to Authentication menu in Firebase at Authorized domains
Below the sign-in method section, there is a Authorized domains section. I think you need to whitelist your domain there.
The authorized domains section might also be in the settings page. Here is a screenshot:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With