Firebase Firestore Web无法在公司代理后面工作 [英] Firebase Firestore Web NOT working behind corporate proxy

查看:60
本文介绍了Firebase Firestore Web无法在公司代理后面工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

My computer is behind a corporate proxy. While visiting a website which is using Firebase Firestore, it is not connecting to the firebase servers. I am getting the below error in console.

[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?

How to work with Firestore web behind proxy?

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

Note: If the system is not behind proxy, same code is working fine. So no issues with the code, but how to setup proxy info in firestore?

推荐答案

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

Depending on which framework you are using Firestore will access a number of domains under googleapis.com over port 443.

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

If you're proxy is inspecting https traffic then you will most likely have to whitelist https://*.googleapis.com/.

这篇关于Firebase Firestore Web无法在公司代理后面工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆