启用混合内容| Safari | “混合内容:此请求已被阻止;内容必须通过HTTPS提供

时间:2018-03-21 01:40:58

标签: http https safari

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)点击盾牌。

enter image description here

2)点击“加载不安全的脚本”

enter image description here

3)现在您应该可以看到被阻止的内容。但当然网站将不再安全。

enter image description here

我也可以在firefox中执行此操作。

1)点击倒置!

enter image description here

2)点击>箭头。

enter image description here

3)暂时禁用保护。

enter image description here

4)现在网站不安全,但您的请求/内容可用。

enter image description here

然而,我已经看了很久,并且在safari中找不到任何最新版本。即使在启用开发人员工具时,我也无法找到它。我查看了一些发布日志,看看是否已弃用此功能,但找不到任何内容。

在safari中有没有办法做到这一点?

2 个答案:

答案 0 :(得分:0)

从Safari 9+中禁用了混合内容 因此这是不可能的。您需要使用代理之类的解决方法

答案 1 :(得分:-1)

导航到Safari的“隐私设置”,然后禁用“阻止第三方Cookie”和“禁用跨站点跟踪”设置。

相关问题