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

PassiveImages, audio, video loaded over HTTPBrowsers may display but warn; content downgraded
ActiveScripts, iframes, CSS, XHR over HTTPBlocked outright: breaks the page

The hunt

  1. Open the browser console on the affected page: mixed-content errors list the exact blocked URLs.
  2. 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.
  3. Database-driven content (WordPress posts, CMS bodies): a search-and-replace through the database, since the http:// links live in stored content.
  4. 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.

Last verified: 2026-11-11