部署时出现混合内容错误



我正在做一个项目,想把我的开发服务器托管到Firebase托管。

当我部署该应用程序时,我在 chrome 开发工具中收到了一些混合内容错误,说我需要将一些源文件从 http 切换到 https,我做到了。这是整个错误消息:

Mixed Content: The page at 'https://peer-program-atx.firebaseapp.com/' was loaded over HTTPS, but requested an insecure script 'http://maps.google.com/maps/api/js?sensor=true'. This request has been blocked; the content must be served over HTTPS.

我需要编辑的其中一个是谷歌地图API。我搜索了整个项目以找到'http://maps.google.com/maps/api/js?sensor=true'的任何实例,以便我可以将其切换到https协议。

完成此操作后,我继续在Chrome开发工具中收到完全相同的错误,该错误阻止了页面加载。这是预期的行为,还是我必须弄清楚为什么我对 Google 地图来源的编辑没有解决问题?

如果我必须解决此问题才能完全呈现网页,我该如何解决此问题?

我的整个项目可以在这里找到:https://github.com/SIeep/peer-program-atx

我的项目目前托管在这里: https://peer-program-atx.firebaseapp.com

欢迎和赞赏任何帮助或想法! :)

谢谢!

哦,看起来它现在可以工作了。奇怪。我一定是不耐烦什么的。凉豆!

最新更新