HTTPS, TLS, and HSTS
Before sending a login or a document, the browser needs a protected connection to the right server. HTTPS carries HTTP over TLS.
On this page
Protect each network hop
The browser checks the server certificate for the hostname and a trusted issuer. TLS protects data in transit against reading and modification. If a proxy terminates TLS, review the next connection separately. Load scripts, styles, and images over HTTPS too.
Browser to reverse proxy HTTPS, valid certificate for docs.example
Reverse proxy to API Authenticated TLS on the internal connection
Remember HTTPS on later visits
Redirect HTTP to HTTPS. Once HTTPS works reliably, send Strict-Transport-Security on the HTTPS response. The browser remembers the rule for max-age seconds. Start with a short rollout. Enable includeSubDomains only after every affected subdomain supports HTTPS.
Strict-Transport-Security: max-age=300