What is HSTS and what are its risks?
IntermediateConceptHTTP, TLS & Certificates
Answer
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload tells browsers to use HTTPS only for the domain for the stated period. It defeats SSL-stripping downgrade attacks.
The risk is lock-in: if your certificate breaks or a subdomain does not support HTTPS, users cannot click through. Roll out with a short max-age first and only preload when every subdomain is ready.
More on HTTP, TLS & Certificates
What is the structure of an HTTP request and response?BeginnerWhich HTTP status code classes and codes should every DevOps engineer know?BeginnerWhat are the common HTTP methods and which are idempotent?BeginnerWhat changed between HTTP/1.1, HTTP/2 and HTTP/3?IntermediateHow does QUIC differ from TCP+TLS?AdvancedWhat are HTTP keep-alive and connection reuse, and why do they matter?Advanced