CORS=CSP- Handle mixed content - mixed content the page at was loaded over https

问题描述

从HTTPS访问HTTP,违法了Chrome的安全规则

mixed content the page at was loaded over https

but requested an insecure XMLHttpRequest endpoint

This request has been blocked; the content must be served over HTTPS.

解决方案

1.修改meta允许这么访问

<meta http-equiv="Content-Security-Policy" 

content="upgrade-insecure-requests">

2.把http的连接全部改成https

3.在瀏覽器中啟用混合內容

如果您的網站在不安全(HTTP)網域上執行,您必須允許VEC載入作用中的混合內容。

The Chromium 14 release will come with an inverse flag: --allow-running-insecure-content, as a convenience for users and admins who have internal applications without immediate fixes for these errors.

C:\Program Files\chrome.exe" --allow-running-insecure-content  没有验证

或者

1. How to fix "insecure content was loaded over HTTPS, but requested an insecure resource"

2.Fixing mixed content

3.Mixed content

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值