SSL 和非安全项目消息
我看到“此页面包含安全和不安全的项目”。 使用 IE 6 查看我网站上的页面时出现消息。IE 7 或 Firefox 中都不会出现此消息。 我做了一些研究,看来问题与 HTTP:// 而不是 HTTPS:// 的链接有关
修复方法只是查看页面源代码并找到所有有 HTTP:// src 的地方并进行更改它? 我相信它们是由 JavaScript 生成的。
谢谢尼克
I am seeing the "This Page contains both secure and nonsecure items." message when viewing a page on my site from with IE 6. This does not appear in both IE 7 or Firefox. I have done some research and it appears that the problem has to do with links to HTTP:// rather than HTTPS://
Would the fix just be to view the page source and find everywhere there is an HTTP:// src and change it? I believe they are being generated from JavaScript.
Thanks Nick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,如果页面是通过 HTTPS 引用的,您需要确保脚本和图像是通过 HTTPS 引用的。
或者,尝试使用相对 URL,以便您的页面可以是 HTTP 或 HTTPS,而不需要更改 html。
Yes, you need to make sure that scripts and images are referenced via HTTPS, if the page is referenced by HTTPS.
Alternatively, try using relative URLs, so that your page can be either HTTP or HTTPS without requiring the html to change.
你正在运行prototype.js吗?
其中有一行用于检测页面何时加载,它调用 \: 作为 src=
将此 src 替换为系统上的 js 文件。 它可以是空白的。
Are you running prototype.js?
There's a line in there to detect when the page has loaded which calls \: as a src=
Replace this src with a js file on your system. It can be blank.
所以问题是第三方控件正在创建一个带有属性 src="about:blank" 的元素。 在 IE6 中,该 src 不受信任。 我的解决方案是创建一个空白.htm 文件。 该文件只包含一个标签。
然后我设置了
这解决了问题。 据我所知,这在较新版本的 IE 中不是问题。
SO the problem was that a 3rd party control was creating an element with and attribute src="about:blank". In IE6 this src is not trusted. The resolution for me was to create a blank.htm file. This file contained nothing but an tag.
I then set the
This fixed the issue. From what I have read, this is not a problem in newer versions of IE.