博客园报错 Mixed Content: The page at 'xxx' was loaded over HTTPS, but requested an insecure favicon 'http://common.cnblogs.com/favicon.ico'...;the content must be served over HTTPS
报错内容:
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的地址而不是Https;博客园js不再支持http引用logo,需要我们在博客园后台管理-博客侧边栏公告种加入下面的代码:
<script type="text/javascript">
window.cnblogsConfig = {
info: {
blogIcon: 'https://common.cnblogs.com/favicon.ico',
},
}
</script>
本文来自博客园,作者:꧁执笔小白꧂,转载请注明原文链接:https://www.cnblogs.com/qq2806933146xiaobai/p/15898995.html

浙公网安备 33010602011771号