学习笔记

This request has been blocked; t

2019-01-30  本文已影响4人  小炉炉

问题描述:

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">
image.png
有些东西别人已经写过了,我再写也没有什么意思。贴出连接,大家有不懂的,请参考下面的连接
参考连接:
https://segmentfault.com/q/1010000005872734
https://thehackernews.com/2015/04/disable-mixed-content-warning.html
上一篇下一篇

猜你喜欢

热点阅读