我的 Greasemonkey 脚本破坏了 IE9 HTTPS 安全性? [英] IE9 HTTPS security is compromised by my Greasemonkey script?

查看:25
本文介绍了我的 Greasemonkey 脚本破坏了 IE9 HTTPS 安全性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 IE9 中有一个 Greasemonkey-for-IE 脚本,用于导入 jQuery.但在安全页面上它不起作用.

I’ve got a Greasemonkey-for-IE script in IE9 that’s importing jQuery. But on secure pages it doesn’t work.

我得到:

SEC7111: HTTPS security is compromised by http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

失败的代码是:

var script = document.createElement("script");
script.setAttribute("src", 
    "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");

我怎样才能做到这一点?该脚本不会在 Firefox 中引起问题.

How can I make this work? The script doesn’t cause a problem in Firefox.

推荐答案

大概:使用 https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js(或不信任第三方 CDN(两者都值得信赖)并且没有受到损害)您的安全页面)

Presumably: Use https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js instead (or not trust a third party CDN (to be both trustworthy and not compromised) for your secure pages)

这篇关于我的 Greasemonkey 脚本破坏了 IE9 HTTPS 安全性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆