如何对 javascript 进行签名以防止“帮助保护您的安全...” ActiveX/脚本警告栏
有什么方法可以对您的 javascript 代码进行签名以防止 IE8 安全栏显示吗? 使用数字证书或类似的东西?
[编辑]
该错误只是普通的旧错误
为了帮助保护您的安全,Internet Explorer 已限制此网页运行可以访问您的计算机的脚本或 ActiveX 控件。单击此处查看选项...
选项有
允许阻止的内容...
有什么风险
信息栏帮助
是什么为了添加更多上下文,我实际上使用一行 javascript 来解决 CSS 问题,即根据内容动态调整多个列的大小。我一直在绞尽脑汁地想弄清楚这一点,最终使用了 javascript,因为它更容易、更直接。然而,仅用一行 javascript 来更改页面格式而弹出信息栏就显得有些过分了。我知道他们可以将其添加到他们的安全网站,甚至只需单击“允许阻止的内容”,但如果他们不必为如此琐碎的事情处理这个问题,那就太好了。
Is there any way to sign your javascript code to prevent the IE8 security bar from displaying?
With a digital certificate or something similar?
[Edit]
The error is just the plain old
To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options...
Options are
Allow Blocked Content...
What's the Risk
Information Bar Help
To add a little more context, I am using practically one line of javascript to solve the CSS problem with having multiple columns dynamically sized to content. I've been pulling my hair out to figure that one out and ended up using javascript because it was much easier and more straightforward. However, it is overkill to have an information bar pop-down for just one line of javascript changing the formatting of a page. I know they can add this to their safe sites, or even just click "Allow Blocked Content", but it would be nice if they didn't have to deal with this for something so trivial.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将您用于测试的站点添加到 IE 中的受信任站点列表中。
Add the site you're using to test on to the list of trusted sites in IE.