IE9 res://ieframe.dll错误

Alo*_*ler 25 html iframe internet-explorer facebook

我有一个网站,允许用户将图像发布到Facebook页面.我使用表单并将其发布到隐藏的IFRAME,以防止用户在发布图像后被重定向.

表单定义:

<form name="myform" id="myform" enctype="multipart/form-data" action="" method="POST" onsubmit="getAction(this);" target="uploader">
//....form code....//
Run Code Online (Sandbox Code Playgroud)

Iframe:

<iframe name="uploader" width=2px height=2px style="visibility: hidden"></iframe>
Run Code Online (Sandbox Code Playgroud)

我的问题是,在My Own Internet Explorer 9中,当我尝试上传图片时,我遇到了以下错误:

SEC7111: HTTPS security is compromised by res://ieframe.dll/dnserrordiagoff.htm 
SEC7111: HTTPS security is compromised by res://ieframe.dll/ErrorPageTemplate.css 
SEC7111: HTTPS security is compromised by res://ieframe.dll/errorPageStrings.js 
SEC7111: HTTPS security is compromised by res://ieframe.dll/httpErrorPagesScripts.js 
SEC7111: HTTPS security is compromised by res://ieframe.dll/noConnect.png 
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png 
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png 
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png 
SEC7111: HTTPS security is compromised by res://ieframe.dll/down.png 
SEC7111: HTTPS security is compromised by res://ieframe.dll/favcenter.png 
SEC7111: HTTPS security is compromised by res://ieframe.dll/favcenter.png 
SEC7111: HTTPS security is compromised by res://ieframe.dll/background_gradient.jpg 
Run Code Online (Sandbox Code Playgroud)

它甚至更奇怪,就像我朋友的电脑,它有相同的IE9版本,并连接到同一个网络,帖子工作得很好(它也在我家里的另一台电脑上工作,另一台在我的兄弟的电脑).我本来可以说它只是一个本地问题,但是由于这个站点解决了很多客户端,我无法理解这个错误,如果它发生在我自己的操作系统上,它可能发生在其他机器上.

我还要注意,这对Chrome和FireFox没有任何问题.

我不确定这是一个与代码相关的问题,我试图谷歌它并找到了Microsoft文章本文.但我删除了任何第三方IE插件,我们和我的朋友都连接到同一个路由器(所以它不是路由器问题)我安装了最新的Windows更新.

我目前不知道解决问题,所以我想问一下你们是否遇到过类似/相同的错误?也许对解决方案有一些想法......

我很乐意在需要时提供更多代码,但我不想从头开始用代码填写问题,因为在大多数情况下它工作正常.

谢谢.

Geo*_*rge 10

最好在服务器级而不是客户端修复此问题,因为我们不能指望所有其他网站访问者更改其IE设置,以便他们可以使用您的网站.

正如您所提到的,它确实是由您在https环境中的iframe引起的.IE9对此特别严格,因此您需要在x-frame-options中定义它:

对于Apache,HTTP Server

在Apache Web Server的httpd.conf文件中添加/更改以下行

Header always append X-Frame-Options SAMEORIGIN
Run Code Online (Sandbox Code Playgroud)

确保未设置为DENY.重启Web服务器

如果有帮助,请告诉我


CBr*_*roe 7

如果它在您朋友的IE 9中工作,但不在您的 - 但是比较您的安全设置.

特别是名为"在IFRAME中启动程序和文件"的那个可能是交易破坏者,我怀疑.

如果那个不是它,那么尝试将提供此功能的每个安全选项从"禁用"设置为"提示",并查看您是否在IE中收到任何消息.

  • 作为开发人员,我们不应期望用户在其浏览器设置中进行任何更改.这是一个在后端(或代理)上启用的安全功能,这是我猜的原因.必须在安全标头的后端修复它. (2认同)