Skip to content
Verified Commit 07d443ee authored by Antoine Beaupré's avatar Antoine Beaupré
Browse files

enable HSTS headers when using TLS

HSTS is HTTP Strict Transport Security, it protects websites against
downgrade attacks. Therefore if we redirect HTTP to HTTPS, we should
also use HSTS. To quote the Mozilla security guidelines:

> HTTP Strict Transport Security (HSTS) is an HTTP header that
> notifies user agents to only connect to a given site over HTTPS,
> even if the scheme chosen was HTTP. Browsers that have had HSTS set
> for a given site will transparently upgrade all requests to
> HTTPS. HSTS also tells the browser to treat TLS and
> certificate-related errors more strictly by disabling the ability
> for users to bypass the error page.
parent 1d6d4a8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment