如何对 javascript 进行签名以防止“帮助保护您的安全...” ActiveX/脚本警告栏

发布于 2024-12-26 03:25:11 字数 504 浏览 6 评论 0原文

有什么方法可以对您的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风吹短裙飘 2025-01-02 03:25:11

将您用于测试的站点添加到 IE 中的受信任站点列表中。

Add the site you're using to test on to the list of trusted sites in IE.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文