OnChainScans
Mixed Content: Blocked Loading Active Content•W3C Mixed Content Specification• LIVE SCANNER EMBEDDED

How to Fix Mixed Content Warnings on HTTPS Websites

Identify insecure HTTP assets, scripts, and fonts that trigger browser security warnings.

Live Diagnostic Tool: Redirect & Canonical Chain ScannerFull Tool Page
Executive Answer & Impact Analysis

Mixed content occurs when an initial HTML document is loaded securely over HTTPS, but subsequent resources (scripts, stylesheets, images, iframes) are requested over unencrypted HTTP. Browsers block active mixed content to prevent man-in-the-middle code injection.

Root Cause Analysis

Hardcoded 'http://' URLs inside database entries, stylesheet assets, script tags, or third-party tracking beacons.

Step-by-Step Resolution Procedure

1Audit Website Assets for Plaintext URLs

Run the Website Asset & Font Scanner to find hardcoded 'http://' asset URLs.

2Enable Upgrade-Insecure-Requests CSP

Add a Content Security Policy header instructing browsers to upgrade all HTTP requests to HTTPS automatically.

3Update Database and Asset References

Search and replace hardcoded HTTP URLs with protocol-relative (//) or HTTPS URLs in your CMS.

Verification Command or Config Pattern

TERMINAL / CONFIGRFC W3C Mixed Content Specification
<!-- In HTML Head -->
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

<!-- Or via HTTP Header -->
Content-Security-Policy: upgrade-insecure-requests; default-src https: 'unsafe-inline' 'unsafe-eval';

Frequently Asked Remediation Questions

What is passive vs active mixed content?

Passive mixed content includes images and audio/video files. Active mixed content includes scripts, stylesheets, and iframes, which browsers block completely because they can alter page behavior.

Does the padlock disappear with mixed content?

Yes. Browsers display a warning or broken padlock icon, eroding user trust and eCommerce conversions.

Does upgrade-insecure-requests work on all browsers?

Yes. Modern versions of Chrome, Safari, Firefox, and Edge all support the 'upgrade-insecure-requests' CSP directive.

How do I scan for mixed content?

Use the Redirect & Asset scanners on OnChainScans to identify unencrypted subresources.