01
Transport: HTTPS and HSTS
Every page should load over HTTPS, and plain-HTTP requests should be redirected to it. HSTS goes a step further: it tells browsers to refuse plain HTTP for your domain for months at a time, so a visitor on a hostile network cannot be quietly downgraded.
- GET / over plain HTTP
- 301 to HTTPS
- strict-transport-security
- max-age=31536000
Fix: Redirect HTTP to HTTPS at the server and send Strict-Transport-Security with a max-age of at least six months. Add includeSubDomains only once every subdomain has a certificate.