Browser Mixed Content Warnings — HTTP Resources on HTTPS Page
Warningsecurity
Overview
Fix mixed content warnings and errors when an HTTPS page loads resources (scripts, images, iframes) over insecure HTTP, causing browser security warnings.
Key Details
- Mixed content occurs when an HTTPS page includes resources loaded over HTTP
- Active mixed content (scripts, iframes, CSS) is blocked by all modern browsers
- Passive mixed content (images, audio, video) shows a warning but may still load
- The padlock icon in the address bar is removed or shows a warning triangle
- Content Security Policy (CSP) can enforce HTTPS for all resources
Common Causes
- HTML containing http:// URLs for scripts, stylesheets, or images on an HTTPS page
- Third-party widgets or ads loading resources over HTTP
- CMS or application generating HTTP URLs instead of HTTPS
- Legacy content with hardcoded HTTP URLs
- CDN not configured for HTTPS delivery
Steps
- 1Find mixed content: open DevTools Console — warnings list the specific HTTP resources
- 2Change resource URLs from http:// to https:// or use protocol-relative //
- 3Add Content-Security-Policy: upgrade-insecure-requests header to auto-upgrade HTTP to HTTPS
- 4Update CMS settings to generate HTTPS URLs (WordPress: Settings > General > change to https)
- 5Use meta tag: <meta http-equiv='Content-Security-Policy' content='upgrade-insecure-requests'>
Tags
browsermixed-contenthttpssecuritycsp
More in Security
windows-defender-errorsWindows Defender Errors — Antivirus Not Working or Updating
Errorwindows-error-0x80073b01-defender-serviceWindows Error 0x80073B01 — Windows Defender Service Failed to Start
Errormac-gatekeeper-app-blockedMac Gatekeeper — App Cannot Be Opened (Unidentified Developer)
Warningmac-filevault-recovery-errorsMac FileVault Errors — Encryption, Decryption & Recovery Key Issues
Errorlinux-ssl-tls-certificate-errorsLinux SSL/TLS Certificate Errors — Expired, Self-Signed & Chain Issues
Warningbrowser-csp-violationsBrowser CSP Violations — Content Security Policy Error Guide
WarningFrequently Asked Questions
Scripts can execute code and steal data (active mixed content = blocked). Images cannot execute code (passive mixed content = warned but loaded).