Picto thématique

Rule n° 194 - Pages using HTTPS have a strict transport header.

According to Wikipedia, which we refuse to paraphrase here : "HTTP Strict Transport Security (HSTS) is a security policy mechanism proposed for HTTP, allowing a web server to declare to a compatible user agent (such as a web browser) that it must interact with it using a secure connection (such as HTTPS)". In short, this means that your server is configured to communicate with the user only in an encrypted manner. This is therefore an extra level of security compared to using HTTPS. Not only does the server talk in HTTPS, but it refuses to talk in any other way.

#Security #Development

Goal

  • Improve exchange security.
  • Preventing the risk of attacks.

Implementation

Use the HTTP Strict Transport Security header and its max-age parameter on each page to specify that the browser must convert all HTTP requests into HTTPS requests.

Control

Check that for each page the server sends the HTTP Strict Transport Security header with the max-age parameter specifying the duration during which the browser must convert all HTTP requests into HTTPS requests

By Opquast - Read the license