HTTPS, TLS and certificates
HSTS and mixed content
Account for every resource in an HTTPS page.
Understand the concept
Loading HTTP resources from an HTTPS page creates mixed content. Depending on resource type and browser policy, requests may be blocked or upgraded; do not rely on accidental success. Review scripts, API calls, images and WebSockets, not just the page redirect.
HSTS learned through secure responses directs future HTTPS use. Preloading is a separate first-connection mechanism. includeSubDomains affects all subdomains, so premature rollout can break services. Long lifetimes and preloading need an operational plan.
HSTS neither repairs certificates nor fixes application flaws. Insecurely delivered policy is not a trusted update. Audit old links, cookies and connection paths during migration.
Avoid browser failures during HTTPS migration.
Enabling subdomain enforcement and preloading without readiness checks.
One topic. Three levels of depth.
Page: https://example.test
API: http://api.example.testThis can create mixed content.
This page does not send requests to external servers. Messages are readable HTTP/1.1 illustrations, not HTTP/2 or HTTP/3 wire dumps. example.test is reserved for examples. Run commands and JavaScript only in your own test environment; never publish real tokens or cookies.
Try it yourself first.
Does HSTS make an expired certificate acceptable?
Show the solution and explanation
HSTS ≠ certificate repairNo; HTTPS enforcement and certificate validity are separate.