其他分享
首页 > 其他分享> > 博客园报错 Mixed Content: The page at 'xxx' was loaded over HTTPS, but requested an insecure fa

博客园报错 Mixed Content: The page at 'xxx' was loaded over HTTPS, but requested an insecure fa

作者:互联网

报错内容:

Mixed Content: The page at 'https://www.cnblogs.com/qq2806933146xiaobai' was loaded over HTTPS, but requested an insecure favicon 'http://common.cnblogs.com/favicon.ico'. This request has been blocked; the content must be served over HTTPS.

对策:

这是因为博客园的logo是引用的http的地址而博客园js不再支持http引用logo,需要我们在博客园后台管理-博客侧边栏公告种加入下面的代码:

<script type="text/javascript">
    window.cnblogsConfig = {
      info: {
         blogIcon: 'https://common.cnblogs.com/favicon.ico',
      },
    }
</script>

标签:http,cnblogs,博客园,favicon,HTTPS,over
来源: https://www.cnblogs.com/qq2806933146xiaobai/p/15898995.html