Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mixed content error vs warning

What determines whether an insecure resource is blocked or loaded anyway with a warning?

Screenshot from Chrome 53: Screenshot from Chrome 53

Created by:

(function(){var d=document.getElementsByTagName('IMG');for(var i=0,l=d.length;i<l;i++){d[i].setAttribute('src','http://placekitten.com/'+d[i].width+'/'+d[i].height)};}())
like image 844
AndreKR Avatar asked Dec 05 '25 03:12

AndreKR


1 Answers

The blocked images are those where the img has a srcset specified.

Screenshot of F12 Developer tools console in Chrome showing srcset

Chrome and Firefox actively block mixed content when an img has a srcset. The src here is an http resource while the srcset uses https.

Chromium Issue 402792 - Mixed content: <img> with empty srcset attribute should be active content

Mozilla Bug 1055750 - (srcset-mixed-content) Block mixed content <img srcset> and <picture>

like image 134
Anand Bhat Avatar answered Dec 08 '25 09:12

Anand Bhat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!