You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should HSTS be used rather than HTTP -> HTTPS redirect? #62
[..] When both http and https URI schemes are supported, the server MUST redirect all http URIs to their https counterparts using a response with a 301 status code and a Location header.
Aaron Coburn @acoburnFeb 02 01:59
Noting that a server may implement support for Strict-Transport-Security headers, which is considered best practice and more secure than merely relying on 3xx redirects https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security (HSTS is orthogonal to the Solid protocol specification, but the Solid protocol specification should not make HSTS difficult to implement)
Sarven Capadisli @csarven Feb 02 10:02
True that. The current language didn't intend to ignore / overstep server's HSTS support. We should encourage HSTS.
These are two separate solutions to the same problem. I would advise to use them both.
A HSTS header is only interpreted by the web browser client software, and can be ignored (though this would be against the standards).
The 301 HTTP-to-HTTPS redirect ensures that the web server software will never allow connections to the "http://" schema on tcp/80 and will send all web browser client softwares to HTTPS on tcp/443 instead. This cannot be ignored by the web client.
Activity
nerdcorenet commentedon Mar 8, 2024
These are two separate solutions to the same problem. I would advise to use them both.
A HSTS header is only interpreted by the web browser client software, and can be ignored (though this would be against the standards).
The 301 HTTP-to-HTTPS redirect ensures that the web server software will never allow connections to the "http://" schema on tcp/80 and will send all web browser client softwares to HTTPS on tcp/443 instead. This cannot be ignored by the web client.