Security · HTTPS

Mixed content

This secure page loads its test card image over http://. That is mixed content: browsers upgrade or block the request and show a warning.

How this page is built

The test card below has an src starting with http://. Current browsers upgrade the request to HTTPS automatically, so it still displays, but the page still asks for an insecure resource.

A grey test card

Why it matters

A secure page should load everything over HTTPS. When it asks for images, scripts or styles over HTTP, the browser warns visitors and the padlock may disappear. Browsers block insecure scripts and styles outright, which can break the page, and they upgrade or block insecure images.

Mixed content usually comes from old content with hard coded http:// addresses, or third-party embeds that have not been updated.

How to check it

Open the browser console: mixed content warnings name each insecure resource. Crawl tools list pages that load HTTP resources, and Lighthouse reports them under best practices.

How to fix it

Change every resource address to HTTPS. If a third party does not support HTTPS, host the file yourself or find another provider. A Content Security Policy with upgrade-insecure-requests can act as a safety net.

Back to all tests