Mixed Content: The page at 'https://2.133.129.124/portal/' was loaded over HTTPS, but requested an insecure favicon 'http://2.133.129.124/portal/img/favicon.ico'. This request has been blocked; the content must be served over HTTPs.
时间: 2024-01-03 15:03:00 浏览: 255
这个错误提示的意思是,你的网站使用了 HTTPS 安全协议,但是在加载网站图标(favicon)时使用了 HTTP 协议,从而导致了混合内容(Mixed Content)错误。
为了解决这个问题,你需要将网站图标的 URL 改为 HTTPS 协议。具体来说,应该将这个 URL:
```
http://2.133.129.124/portal/img/favicon.ico
```
改为:
```
https://2.133.129.124/portal/img/favicon.ico
```
这样,浏览器就可以正确加载网站图标,并且不会出现混合内容错误。
相关问题
http修改为https后。原本加载resource/static文件下的ico 会报错Mixed Content: The page at 'https://2.133.129.124/portal/' was loaded over HTTPS, but requested an insecure favicon 'http://2.133.129.124/portal/img/favicon.ico'. This request has been blocked; the content must be served over HTTPs.
这个报错是因为你的网站已经使用了HTTPS协议,但是在加载favicon.ico这个文件时却使用了HTTP协议,这就导致了Mixed Content错误。解决这个问题的方法很简单,只需要将favicon.ico的路径修改为HTTPS即可,比如将'http://2.133.129.124/portal/img/favicon.ico'修改为'https://2.133.129.124/portal/img/favicon.ico'。这样就可以保证所有的资源都是通过HTTPS协议加载的,避免Mixed Content错误的发生。
http修改为https后。原本加载resource/static文件下的ico使用url("../../img/common/r2-a.png") 方式加载的 会报错Mixed Content: The page at 'https://2.133.129.124/portal/' was loaded over HTTPS, but requested an insecure favicon 'http://2.133.129.124/portal/img/favicon.ico'. This request has been blocked; the content must be served over HTTPs.
同样的,这个报错是因为你的网站已经使用了HTTPS协议,但是在加载"../../img/common/r2-a.png"这个文件时却使用了HTTP协议,导致了Mixed Content错误。解决方法也很简单,只需要将该文件的路径修改为HTTPS即可,比如将"../../img/common/r2-a.png"修改为"https://2.133.129.124/portal/img/common/r2-a.png",这样就可以保证所有的资源都是通过HTTPS协议加载的,避免Mixed Content错误的发生。
阅读全文