通过HTTPS从HTTP页面获取JS文件
好的,那么在 HTTP 页面上通过 HTTPS 调用获取 JS 文件会产生什么影响。 我认为这只是一点额外的开销。任何特定浏览器都会有关于此调用的警告吗?
别问为什么。这只是假设。
Okay, so what are the ramifications of getting a JS file via an HTTPS call while on a HTTP page.
I assume it would just be a little bit of extra overhead. Would there be any warnings about this call from any certain browser?
Don't ask why. It's just hypothetical.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
任何浏览器中都不应该有任何警告。您可以尝试此 URL - http://www.530geeks.com/mixed-content。 html。我用 ie6 和 firefox 3.5 进行了测试,他们没有抱怨。
它也是合乎逻辑的 - 主机页面是通过 http 提供服务的,对连接没有隐含的信任。所以没有什么可以警告用户的。
There shouldn't be any warnings in any browser. You can try it out this URL - http://www.530geeks.com/mixed-content.html. I tested with ie6 and firefox 3.5, they don't complain.
Its logical too - the host page is being served over http, there is no implied trust with the connection. So there is nothing to warn the user.
这可能会触发 Internet Explorer 中的“安全和不安全混合”内容警报。
This will probably trigger the "Mix of secure and insecure" content alert in Internet Explorer.
有时 IE(也许还有其他浏览器)会感到紧张并抱怨页面混合了安全和不安全的内容。您所做的事情是否会导致这种情况需要进行简单的测试。
Sometimes IE (and maybe other browsers) get nervous and complain about pages having a mix of secure and insecure content. Whether what you're doing would cause that would require a simple test.