the content must be served over HTTPS


问题:

This request has been blocked; the content must be served over HTTPS.
问题详述:    
域名连接到服务器进行https改造之后,使用chrome访问https页面,由于我使用的是百度地图的相关组建,其内部会引入一些http的连接资源,所以在chrome中访问也面会出现这个问题。此时需要在引用相关文件的html页面中的head头部加入如下内容即可。

解决方法

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

明天的你一定会感谢现在拼命的自己!

更多推荐

the content must be served over HTTPS