开发者

How to tell what is causing Internet Explorer to give security warning

开发者 https://www.devze.com 2023-04-01 16:23 出处:网络
Does anybody have tips on how to tell what is causing Internet Explorer to gi开发者_如何学JAVAve a security warning for some flash videos on my site? I\'ve looked through the HTML and can\'t find anyt

Does anybody have tips on how to tell what is causing Internet Explorer to gi开发者_如何学JAVAve a security warning for some flash videos on my site? I've looked through the HTML and can't find anything, so it appears to be somewhere in the Flash itself. But I'm not really sure.

Thanks


This is generally caused by a page that is loaded via https but references content via http. Make sure all content on the page loads with https. That includes all images, flash movies, css, javascript, etc.

A vastly underutilized feature of html that helps avoid this kind of thing is support for relative schemes on absolute urls. The way it works is something like this: Instead of:

<img src="http://example.com/images/logo.jpg" alt="logo" />

do this:

<img src="//example.com/images/logo.jpg" alt="logo" />

The second example will load the image with the same scheme as the containing page was loaded. Browser support for this feature is excellent. An example of a large site that leverages this feature heavily is SlashDot.org. View source on their homepage and you'll see many uses for all their CDN content.

0

精彩评论

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