Mixed Content (Mixed Content)
Why You Should Care About Mixed Content
Mixed content undermines the security that HTTPS provides. If an HTTPS page requests a script over HTTP, an attacker on the network could replace that response with malicious code.
Current web-platform guidance classifies mixed content as upgradable or blockable. Browsers may automatically rewrite some image, audio, and video requests from HTTP to HTTPS. More dangerous resource types, and requests that cannot be safely upgraded, are blocked. This can create both security problems and broken functionality.
Fix the source URLs to use HTTPS. Do not replace them with protocol-relative URLs, which inherit an insecure scheme when a page is reached over HTTP. The upgrade-insecure-requests CSP directive can provide migration defense-in-depth, but the destination still needs to support HTTPS.
Testing Your Configuration
Use browser developer tools and a crawler that renders representative pages to find mixed-content requests. DomainOptic checks HTTPS and headers but does not guarantee a complete mixed-content crawl. Fix source URLs, then use upgrade-insecure-requests only as defense-in-depth.