Mixed Content Warnings: Causes and Fixes
A mixed-content warning means an HTTPS page is loading a resource over HTTP: the lock breaks, browsers block the resource, and users see "not fully secure." The fix is always the same hunt: find every http:// reference and upgrade it.
The two types
| Passive | Images, audio, video loaded over HTTP | Browsers may display but warn; content downgraded |
| Active | Scripts, iframes, CSS, XHR over HTTP | Blocked outright: breaks the page |
The hunt
- Open the browser console on the affected page: mixed-content errors list the exact blocked URLs.
- Fix in source: change http:// to https:// (most resources exist over HTTPS), or make URLs protocol-relative, or use a CSP upgrade-insecure-requests header as a stopgap.
- Database-driven content (WordPress posts, CMS bodies): a search-and-replace through the database, since the http:// links live in stored content.
- Re-validate: the console should be silent and the padlock solid.
Prevention
- Add Content-Security-Policy: upgrade-insecure-requests as a safety net.
- Never hardcode protocol in content URLs; use relative paths or https.
- Check third-party widgets support HTTPS before embedding them.
Frequently asked questions
Why do browsers block active content?+
A script loaded over HTTP can be rewritten in transit even on an HTTPS page: it would defeat the entire encryption model.
What is the padlock with a warning?+
Passive mixed content: the page loads but is flagged as 'not fully secure.'
My images broke after moving to HTTPS. Why?+
They are referenced over http:// and now blocked: update the URLs (often stored in the CMS database).
Can I whitelist one HTTP resource?+
No: the browser decides. The resource must move to HTTPS or be removed.
Does the CSP header fix it for users?+
upgrade-insecure-requests rewrites subresource requests to HTTPS before fetching: a stopgap while you fix sources.
Related
Last verified: 2026-11-11