加载包含 flash 或 javascript 的页面时,我收到安全错误消息
“为了帮助保护您的安全, 浏览器已限制该网页 通过运行脚本或 ActiveX 可以访问您的控件 计算机”
每当我添加 Flash 电影或 javascript 代码时,都会显示此消息。它也会向其他人显示,那么我如何摆脱此消息?如果我加载或访问包含这些功能的其他网站,它不会显示此消息请告诉我如何编写脚本,以便它不会显示此错误。
"To help protect your security,
Explorer has restricted this webpage
from running scripts or ActiveX
controls that could access your
computer"
Whenever I add Flash movies or javascript code this message will show. It also shows for somebody else, so how do I get rid of this message? If I load or access some other website which cotains these features it doesn't show this message. Please tell me how to write a script so that it does not show this error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您直接加载 HTML 文件(而不是通过 Web 服务器),您经常会收到此消息。 如果是这种情况,请设置本地 Web 服务器(例如 Apache 或 IIS)并在其上进行开发。
如果您已经在使用 Web 服务器,那么您的 IE 安全设置可能有点奇怪。 转到工具 -> 互联网选项 -> 安全并检查那里的设置。
If you're loading an HTML file directly (as opposed to through a web server) you can quite often get this message. If that's the case, set up a local web server (Apache or IIS for example) and develop on that.
If you're already going through a web server, then it's probably your IE security settings are a bit strange. Go to Tools -> Internet Options -> Security and check the settings there.
本文解释了本地文件绕过此问题的一种方法
http://msdn.microsoft.com/en-us /library/ms537628(VS.85).aspx
问题是本地加载的文件以从远程 Web 服务器加载的文件所没有的权限运行。 因此 IE 会更加努力地警告您有关它们的信息。 您可以在 html 文件中放置一个标记,告诉 IE 使用 Web 权限,这样警告就会消失(权限也会消失,但您通常不希望这样做)
This article explains one way to bypass this for localfiles
http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx
The problem is that locally loaded files run with permissions that ones loaded from a remote webserver don't. So IE tries harder to warn you about them. You can put a marker in the html file telling IE to use the web permissions instead so the warning goes away (and so do the permissions, which you usually don't want anyway)
从电脑加载该页面时看不到噪音警告的另一种选择是编写如下注释:
其中数字是网址的字符数。
Another option to not see that noise warning when you load that page from your pc is to write a comment like this:
Where the number is the number of characters of the url.