我在启用Google 登录的Angular4 项目中使用Firebase Auth (firebase 4.1.3) 。在本地主机上工作时,一切都按预期工作。但是,在部署托管在 Google App Engine 上的应用程序时,身份验证弹出窗口失败并显示“auth/unauthorized-domain”错误。
如何在 Firebase 中将我的自定义域列入白名单?
已经完成的检查:
其他一些类似的 SO 问题是指检查之前的内容,甚至在将新域列入白名单以允许更改传播后最多等待 20 分钟。但这些建议都不适合我。
注意:完整的错误代码
{
code: "auth/unauthorized-domain"
message: "This domain (PROJECT.appspot.com) is not authorized to …Run Code Online (Sandbox Code Playgroud) google-app-engine angularjs firebase firebase-authentication