【问题标题】:Chrome blocks the work of expansion [duplicate]Chrome阻止了扩展工作[重复]
【发布时间】:2014-12-29 05:15:54
【问题描述】:

我的扩展在我的网站 (http) 上发送 GET 请求。 但是 Chrome 最近开始阻止这些请求,并显示错误:

The page at 'https://site' was loaded over HTTPS, but ran insecure content from 'http://MYsite/zz.php?id=116174676': this content should also be loaded over HTTPS.
VM93 content_script.js:16(anonymous function)

我该如何解决这个问题?

【问题讨论】:

  • 只需将请求发送到您网站的 HTTPS 版本。如果你没有一个,你必须得到一个。

标签: javascript google-chrome google-chrome-extension https


【解决方案1】:

正如错误明确指出的那样,您需要通过 HTTPS 加载您的内容。

【讨论】:

    【解决方案2】:

    在你的代码中搜索尝试访问http协议的位置,应该是https

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-01
      • 1970-01-01
      • 2018-07-02
      • 1970-01-01
      相关资源
      最近更新 更多