问题描述
从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 没有验证
或者


这篇博客讨论了Chrome浏览器对于从HTTPS页面加载HTTP资源的限制,导致的‘mixed content’错误。提供了三种解决方案:1) 修改网页的Content-Security-Policy元标签以升级不安全请求;2) 将所有HTTP链接改为HTTPS;3) 在浏览器中临时启用混合内容。文章强调了确保网站内容全为HTTPS以遵循最佳安全实践的重要性。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



