Internet Explorer 中的混合内容警告
嘿,堆栈溢出爱好者。
我在 Internet Explorer 中收到此混合内容警告。
这让我的一些最终用户很恼火。我知道通过浏览堆栈溢出可以解决此问题(一种基于浏览器,一种基于代码)。我研究了通过 http 可能请求的内容(与 https 相对)(使用 Fidler 和 chromes 开发工具),所有内容都通过 http 请求。
然而,我确实注意到了一些奇怪的事情。查看http,我发现浏览器正在寻找特定的.gif 文件,但似乎找不到它。经过进一步调查,它看起来像是我下载的 jquery 包 (timeentry.js) 的一部分。 Jquery 文件已找到并且正在运行。但那个 gif 文件看起来并没有显示出来。我要问另一个关于如何让 timeentry jquery 文件与该 gif 文件一起使用的问题。但我的问题是,如果尝试通过 https 加载所有内容但浏览器仍然找不到某些内容,您是否还会遇到混合内容警告?
大家有没有遇到过类似的问题并解决了呢?任何对此的帮助都会很棒!
Hey there stack overflow enthusiasts.
I am getting this mixed content warning in Internet Explorer.
It is annoying some of my end users. I know that there is a couple of solutions to this problem by browsing stack overflow (one browser based and one code based). I have looked at what might be being requested via http as apposed to https (using Fidler and chromes dev tools) and everything is being requested via http.
However, I did notice something strange. Looking at http I found out that the browser is looking for a specific .gif file and it can't seem to find it. Upon further investigation, it looks like it was part of a jquery package I downloaded (timeentry.js). The Jquery file is found and it is working. But that gif file just doesn't look like it is showing up. I am going to ask another SO question about how to get that timeentry jquery file to work with that gif file. But my question for you is, will you still run into a mixed content warning if everyything is attempted to be loaded via https but the browser can't still find certain content?
Have you every run into a similar issue and resolved it? Any help with this would be great!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题的答案是肯定的:该消息是由浏览器(至少是 IE)在检索数据之前引发的,以保护用户。
其背后的原因是,访问内容然后告诉用户可能存在问题并没有多大好处。
The answer to your question is yes: the message is raised by the browser (at least IE) prior to retrieving the data in order to protect the user.
The reasoning behind this is that it wouldn't do much good to access the content, then tell the user there might be a problem.