Firebase Auth/unauthorized domain. Domain is not authorized

半腔热情 提交于 2020-02-19 10:11:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!