Top 6 HTTP Headers that improve your site security.
S ecurity is a really important thing but almost we don’t care when building applications. There are a lot of essential security practices, But in this story, I am going to talk about HTTP Security Headers. In HTTP requests , Headers hold the metadata about the request/response. Apart from that, Some HTTP Headers are used to enforce some security mechanisms. Okay, Let’s jump into the topic… HTTP Strict Transport Security (HSTS) Most websites use HTTPS nowadays. Th a t’s really good. But some sites don’t force users to communicate via HTTPS . Instead, they work on both HTTP and HTTPS . This is really bad. Because Still, they are giving an option to communicate non-securely. HSTS header helps us to force users to access the site via HTTPS only. So basically, When the browser finds this header, It will change the connection to HTTPS even if the user tries to access it via HTTP . Strict-Tr...