Heroku上firebase身份验证的网络错误

时间:2018-03-06 23:07:23

标签: reactjs firebase heroku firebase-authentication

我在Heroku上提供了一个使用firebase谷歌身份验证的应用程序。当在chrome中调用signInWithPopup弹出窗口时,只显示白色背景,永远不会有机会登录,然后在几秒后关闭(我相信这是默认超时)。在控制台中错误是code: "auth/network-request-failed", message: "A network error (such as timeout, interrupted connection or unreachable host) has occurred."在firefox中,弹出窗口实际上包含应用程序(不是登录,只是iframe中应用程序的一个小版本),然后关闭控制台错误uncaught exception: Error: The popup has been closed by the user before finalizing the operation.

该应用程序在dev-server上正常运行。在Chrome开发工具的网络部分,当登录按钮单击后从dev-server本地服务时,我得到iframe的调用,然后调用两个getProjectConfig。但是当从Heroku提供服务时,在iframe调用之后我收到了对bundle和css文件的调用。我检查了Heroku配置,它看起来是正确的。没有构建错误。我不知道在哪里可以看。

https://expensify-app-take-2.herokuapp.com/的Heroku应用 回复github.com/jmcgloin/expensify

Chrome 64,Firefox 58,Ubuntu 16.04。

我感谢任何帮助(尤其是可以指导我如何在将来更好地调试这个问题的帮助)。如果您需要更多信息,请告诉我。

0 个答案:

没有答案