Mixed content
Mixed content is an http:// resource loading on an https:// page. Why browsers block or warn on it, and how the fix is usually one string.
What it is
Mixed content is any http:// resource — a script, stylesheet, image or iframe — loaded on a page served over https://. The page itself is encrypted; the mixed-content resource is not.
Modern browsers block the highest-risk kind (scripts and stylesheets) outright and show a warning or broken-lock icon for the rest.
Why it matters
Every http:// request is visible and modifiable in transit, so a script loaded that way can be swapped out by anyone between the visitor and the server — on a page that's otherwise protected by TLS. It's usually left over from a domain migration or a third-party embed that never updated its own URLs.
The fix is almost always changing one string, for the specific resource the browser is warning about: http:// becomes https://, or a protocol-relative //.
How to fix it
with a reference doc<!-- before -->
<script src="http://cdn.example.com/widget.js"></script>
<!-- after -->
<script src="https://cdn.example.com/widget.js"></script>Related checks
3This is one of the 75 checks the scanner runs. See what we check for the full list, every severity weight, and how the score is computed from them.