Remove mixed (HTTP) content from HTTPS pages
अपडेट: 1 दिस॰ 2026
यह गाइड अभी अंग्रेज़ी में है।
What it means
Your HTTPS pages load scripts, images or styles over plain http://. Browsers block active mixed content and show warnings; the HTTP parts can be tampered with in transit.
Why it matters
Broken page features, "Not secure" warnings, and an injection path on hostile networks.
How to fix it
- Find http:// URLs in templates, CMS content and database (search for "http://").
- Change them to https:// or protocol-relative/relative URLs.
- Add the CSP directive upgrade-insecure-requests as a safety net.
Configuration examples
nginx
add_header Content-Security-Policy "upgrade-insecure-requests" always;
Apache
Header always set Content-Security-Policy "upgrade-insecure-requests"
Cloudflare
SSL/TLS -> Edge Certificates -> Automatic HTTPS Rewrites: On
Any platform
Content-Security-Policy: upgrade-insecure-requests
Check your fix
Open the page with DevTools -> Console and look for "Mixed Content" warnings.
References
- https://developer.mozilla.org/docs/Web/Security/Mixed_content