Firebase Firestore Web无法在公司代理后面运行

时间:2018-09-21 10:24:39

标签: firebase proxy google-cloud-firestore

我的计算机位于公司代理的后面。访问使用Firebase Firestore的网站时,它未连接到Firebase服务器。我在控制台中收到以下错误。

[2018-09-21T10:09:15.854Z]  @firebase/firestore: Firestore (5.4.1): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.

如何在代理后使用Firestore Web?

注意:如果系统不在代理之后,则相同的代码可以正常工作。因此,代码没有问题,但是如何在Firestore中设置代理信息?

1 个答案:

答案 0 :(得分:0)

根据所使用的Firestore框架,将通过端口443在googleapis.com下访问多个域。

如果您的代理正在检查https流量,则您很可能必须将https://*.googleapis.com/列入白名单。