且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firebase 身份验证/未经授权的域.域未授权

更新时间:2023-02-24 17:53:20

您需要添加域 mail-demo-fcm.firebaseapp.com 到Firebase 中授权域中的身份验证菜单

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