为什么IE8不正确地抱怨加载不安全的元素? [英] Why is IE8 incorrectly complaining about loading non-secure elements?

查看:139
本文介绍了为什么IE8不正确地抱怨加载不安全的元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我管理在SSL下运行的电子商务网站。



问题发生在我的网站的购物车的最后一页上,该页面在SSL下加载。问题在于Internet Explorer 8.0(包括版本8.0.6001.18702和其他版本的IE8,但据报道并非所有版本的IE8)都抱怨至少有一个非安全元素加载,这会吓跑一些我的潜在客户。 IE8显示一个对话框,页面显然完全加载(看似没有丢失的图像),说:


安全警告:你想仅查看安全传送的
的网页内容?此网页包含的内容不会使用安全的HTTPS连接传送
,这可能会危及
整个网页的安全(YES / NO)


我试图追踪可能通过HTTP加载的所有无效图像和链接,但是没有无济于事。 Firebug Lite没有显示任何不安全。我开始认为这可能是IE8中的一个错误,在IE9中得到了纠正,该错误没有发生。



重现此错误 点击此处使用IE8(或Chrome) 将商品添加到购物车。在结果页面上,点击右边的绿色按钮,继续安全签出。您会注意到您看到了IE8上面的安全警告。



问题:我如何确定浏览器正在尝试加载的内容不安全,或者如何禁止警告消息?



更新:看起来安全警告是由于在此页面上暂停执行JavaScript。但同样的问题仍然存在。如何禁止或调试安全警告消息?

解决方案

我知道这是一个旧帖子,没有发布一个解决我类似情况的答案,我想我会分享我发现的情况,以防其他人绊倒到此页面上。如果使用 removeChild()删除包含设置背景图像的内联样式的HTML元素,则会在较早版本的IE8中发出警告。您可以通过将嵌入式样式设置背景图像转换为HTML头部或外部样式表中设置的样式类来摆脱警告。

这个Microsoft KB页面,其中说故障只出现在IE6和IE7中,但它发生在XP上的IE8上,同样的修复工作。


I manage an e-commerce site running under SSL.

The problem is happening on the final page of my site's shopping cart that loads under SSL. The problem is that Internet Explorer 8.0 (including version 8.0.6001.18702 and other versions of IE8, but reportedly not all versions of IE8) complain about at least one non-secure element loading, which is scaring away some of my prospective customers. IE8 displays a dialogue box after the page has apparently fully loaded (with seemingly no missing images) that says:

"Security Warning: Do you want to view only the web page content that was delivered securely? This webpage contains content that will not be delivered using a secure HTTPS connection, which could compromise the security of the entire web page. (YES/NO)"

I tried to track down all invalid images and links that may be loading via HTTP, but no to avail. Firebug Lite shows nothing non-secure. I'm starting to think this may be a bug within IE8 that was corrected in IE9, which does not complain.

TO REPRODUCE THIS ERROR: Click here using IE8 (or Chrome) to add an item to your shopping cart. On the resulting page, click on the GREEN button on the right that says, "Proceed to Secure Checkout." You will notice that you see the above "Security Warning" from IE8.

QUESTION: How can I determine what the browser is attempting to load non-securely, or how can I suppress the "Warning" message?

UPDATE: It seems the "Security Warning" is due to the suspended JavaScript execution on this page. But the same question still remains. How can the "Security Warning" message be suppressed or "debugged"?

解决方案

I know this is an old post, but since there wasn't an answer posted that fixed my similar situation, I thought I'd shared what I found in case anyone else stumbles onto this page. If you use removeChild() to remove an HTML element that contains an inline style setting a background image, the warning occurs in older versions of IE8. You can get rid of the warning by moving the inline style setting the background image into a style class set in the HTML head or external style sheet.

See this Microsoft KB Page, which says the glitch only occurs in IE6 and IE7, but it happened to me on IE8 on XP, too, and the same fix worked.

这篇关于为什么IE8不正确地抱怨加载不安全的元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆