Search code examples
google-chromemixed-content

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)};}())

Solution

  • 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>