作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
Mixed Content: The page at 'https://yourwebsite.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://otherwebsite.com/'. This request has been blocked; the content must be served over HTTPS.
在遇到这个错误几次之后,我了解到在现代网络浏览器中不能有混合内容。这意味着 https 站点无法向只有 http 的站点发出请求。
所以我的问题是在 safari 中启用它。
但是在开发阶段我可以在 chrome 中启用它
1) 点击盾牌。
2) 点击“加载不安全脚本”
3) 现在您应该能够看到被阻止的内容。但当然该网站将不再安全。
我也可以在 firefox 中执行此操作。
1) 点击颠倒的!
2) 单击 > 箭头。
3) 暂时禁用保护。
4) 现在站点不安全,但您的请求/内容可用。
但是,我一直在寻找,但在任何最新版本的 safari 中都找不到它。即使启用开发人员工具,我也找不到它。我查看了一些发布日志以查看此功能是否已弃用,但找不到任何内容。
有什么办法可以在 safari 中做到这一点吗?
最佳答案
Safari 9+ 禁用混合内容所以这是不可能的。您需要使用代理之类的解决方法
关于http - 启用混合内容 | Safari | "混合内容 : This request has been blocked; the content must be served over HTTPS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49396825/
我是一名优秀的程序员,十分优秀!