chrome禁止混合内容(Mixed Content)

问题描述

在Chrome浏览器内,https协议的网站内加载http协议的图片,会报以下错误,图片也会加载不出来。

1
Mixed Content: The page at 'https://beef.zz.com/front/#/biz/cultivationList/cultivationDetails/5dbf836751ba4b5d9e246ad44f013200' was loaded over HTTPS, but requested an insecure element 'http://www.aa.com/files/financialAppUpload/20201230/0403e240-95dc-4c91-a032-2262e396c411-20201230.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
APACHE

原因

chrome阻止了混合内容,会自动将http升级到https,即使https下没有该资源,也不回退,可能会导致网站损坏(即加载不出来图片)。

解决办法

点击地址栏小锁图标,选择网站设置

拉到最下边,找到不安全内容 选择允许

刷新页面就可以展示图片了。

参考:
https://www.chromestatus.com/feature/4926989725073408


chrome禁止混合内容(Mixed Content)
https://www.wekri.com/other/chrome-mixed-content/
Author
Echo
Posted on
January 15, 2021
Licensed under