SEC7111 issue in IE9 complains about https content

I get an error in IE9 when my page loads in https, it is not like the other streams around here where the content is being loaded from ex. http: // googleapis .. I switched all links to the relative protocol relationships, so just // googleapis ..

The error I get is the image that I have on my page that is loading from this domain;

<img src="<?php echo getRootAddress();?>/images/img.jpg"> 

This will lead to the creation of an https link and what I find confusing is what IE says:

SEC7111: HTTPS security breached https://mydomain.se/images/img.jpg

I would buy it if the link was only http: //, and I have a bunch of other photos that work fine, and of course I only get this in IE =) Any ideas?

+4
source share
1 answer

At first glance, I would say that this seems like a bug in IE (Gasp, which never happens!). To study the problem, I recommend using chrome with Dom Snitch , which will provide accurate and detailed information in mixed content issues.

On the other hand, why are you using getRootAddress ()? This is a huge mess, you should use relative URLs, for example:

 <img src="/images/img.jpg"> 

If the page is https, this image will be uploaded using https. Relative URLs are a general software requirement; I know that this is what is required at my place of work.

+1
source

Source: https://habr.com/ru/post/1383617/


All Articles