Firebase Google登录:该域无权运行此操作

时间:2019-08-20 09:44:18

标签: angular firebase heroku oauth firebase-authentication

我无法让Firebase Google登录与自定义域一起使用。 在 localhost 上运行应用程序时,此功能有效。 我已在 Authentication Signing methods

下的 Authorized domains 上添加了自定义域。

enter image description here

我已经在应用模块中使用以下配置初始化了该应用。 enter image description here

我在这里缺少什么,是否可能是我在Heroku中使用Express服务器部署了Angular应用程序? 感谢您的协助。

1 个答案:

答案 0 :(得分:0)

我的错误是我在使用-aot --prod 标志进行构建时没有在 environment.prod.ts 中包含Firebase配置。生产版本。 ?‍♂️