美文网首页学习笔记
This request has been blocked; t

This request has been blocked; t

作者: 小炉炉 | 来源:发表于2019-01-30 10:56 被阅读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

    相关文章

      网友评论

        本文标题:This request has been blocked; t

        本文链接:https://www.haomeiwen.com/subject/vxvqsqtx.html