开发者

HTTPS and HTTP Mixed Content in IE 7 and IE 8

开发者 https://www.devze.com 2023-02-24 01:28 出处:网络
I have an application that I would like to be mostly ssl based but allow http links to coexist on https pages in IE7 and IE8. When I put mixed content (embed http links on https served pages) I get mi

I have an application that I would like to be mostly ssl based but allow http links to coexist on https pages in IE7 and IE8. When I put mixed content (embed http links on https served pages) I get mixed content warnings from IE. Is there an开发者_C百科y way around this? We are using a security certificate, do certain certs handle mixed content? Firefox and Chrome don't throw any errors...any ideas?


No, there is no way round this - it is a browser restriction, and it is up to the user to allow the mixed content or not. If you are serving over SSL then the whole page should be served that way, which means you should also serve your stylesheets, scripts and images securely (even if they are sourced from a CDN).

For a good answer on how to use links that are protocol agnostic (i.e. they work whether the protocol is http or https), check this previous SO answer. Another good resource I've recently become aware of is this blog post: The protocol-relative URL

0

精彩评论

暂无评论...
验证码 换一张
取 消