The title pretty much says it all. If I include the Asual Address plugin for jQuery in my project IE6 warns the user about "both secure and nonsecure items". I've stripped a page down to nothing but:
题目差不多说明了一切。如果我在我的项目IE6中包含jQuery的Asual地址插件,就会警告用户“安全的和不安全的项目”。我已经精简了一页,只有:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Title</title>
</head>
<body>
<script src="js/jquery.1.4.4.min.js" type="text/javascript"></script>
<script src="js/jquery.address-1.3.min.js" type="text/javascript"></script>
</body>
</html>
Place that in a secure site and IE6 will throw the warning. I've looked in the source for the common culprit that is an iframe
with an "about:blank"
src
tag but didn't see anything that looked like a problem.
把它放在一个安全的网站上,IE6就会发出警告。我在源代码中查找了一个常见的罪魁祸首,它是一个带有“about:blank”src标记的iframe,但没有看到任何看起来像问题的东西。
Any help is appreciated.
任何帮助都是感激。
Update: I've tried Fiddler to determine where the nonsecure item is coming from. The only three things listed are:
更新:我尝试了Fiddler来确定非安全项来自哪里。列出的三件事是:
200 HTTPS CONNECT *websiteurl*:443
200 HTTPS *websiteurl* Default.aspx
200 HTTPS *websiteurl* /js/jquery.1.4.4.min.js
200 HTTPS *websiteurl* /js/jquery.address-1.3.min.js
The difference comes if I click "No" to loading the nonsecure items. I get
如果我点击“不”来加载不安全的项目,就会产生不同的效果。我得到
200 HTTPS CONNECT *websiteurl*:443
200 HTTPS *websiteurl* Default.aspx
200 HTTPS *websiteurl* /js/jquery.1.4.4.min.js
200 HTTPS *websiteurl* /js/jquery.address-1.3.min.js
400 HTTPS *websiteurl* pagerror.gif
I've researched the pagerror.gif
, but It comes after I've told IE not to load the nonsecure items, so I'm not sure it's related to my issue.
我研究了pagerror。是gif,但它是在我告诉IE不要加载不安全的项目之后出现的,所以我不确定它是否与我的问题有关。
2 个解决方案
#1
4
Ok, I finally found it. Turns out, it was a problem with an iframe source.
好吧,我终于找到了。事实证明,这是iframe源的问题。
For future readers: In the plugin, you'll need to give the iframe a src when it's created. javascript:false;
works nicely. So, find the line that reads
对于未来的读者:在插件中,当iframe被创建时,您需要给它一个src。javascript:错误;很好地工作。所以,找到这一行
_frame = _d.createElement((frameset ? '' : 'i') + 'frame');
and change it to
和改变它
_frame = _d.createElement((frameset ? '' : 'i') + 'frame');
_frame.src = 'javascript:false;';
Hope this helps someone!
希望这可以帮助别人!
#2
1
1 - Download Fiddler Web Debugger or HttpFox (or any suitable web debugging proxy).
下载Fiddler Web调试器或HttpFox(或任何合适的Web调试代理)。
2 - Clear your browser cache.
2 -清除浏览器缓存。
3 - Using one of those programs, view everything fetched from your site. The culprit is the non-https requested resource.
3 -使用其中的一个程序,查看从站点获取的所有内容。罪魁祸首是非https请求的资源。
#1
4
Ok, I finally found it. Turns out, it was a problem with an iframe source.
好吧,我终于找到了。事实证明,这是iframe源的问题。
For future readers: In the plugin, you'll need to give the iframe a src when it's created. javascript:false;
works nicely. So, find the line that reads
对于未来的读者:在插件中,当iframe被创建时,您需要给它一个src。javascript:错误;很好地工作。所以,找到这一行
_frame = _d.createElement((frameset ? '' : 'i') + 'frame');
and change it to
和改变它
_frame = _d.createElement((frameset ? '' : 'i') + 'frame');
_frame.src = 'javascript:false;';
Hope this helps someone!
希望这可以帮助别人!
#2
1
1 - Download Fiddler Web Debugger or HttpFox (or any suitable web debugging proxy).
下载Fiddler Web调试器或HttpFox(或任何合适的Web调试代理)。
2 - Clear your browser cache.
2 -清除浏览器缓存。
3 - Using one of those programs, view everything fetched from your site. The culprit is the non-https requested resource.
3 -使用其中的一个程序,查看从站点获取的所有内容。罪魁祸首是非https请求的资源。