且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Heroku错误:页面已通过HTTPS加载,但请求了不安全的脚本"angular-route.js"

更新时间:2021-11-24 21:19:34

请注意,托管angular-route的CDN中没有HTTPS-表示它未以安全协议提供.

Notice your CDN that's hosting angular-route does not have HTTPS in it - means it is not served in secure protocol.

要么在Heroku(自然是HTTPS)上托管它的副本,要么找到要使用的新CDN.

Either host a copy of it on Heroku (naturally - HTTPS) or find a new CDN to work with.

如上所述,您可以将http://替换为https://,因为Google的API可以通过https提供.

as mentioned you can just replace http:// with https:// since Google's APIs can be served through https.