Open
Description
Secure and harden the ExpressJS middleware. Third-party modules can be used. The following security features need to be covered.
Content-Security-Policy
header for Cross-Site Scripting (XSS) attacksExpect-CT
header for Certificate TransparencyX-DNS-Prefetch-Control
header to control browser DNS prefetchingX-Frame-Options
header to prevent clickjacking attacks- Remove the
X-Powered-By
header to prevent hackers from exploiting vulnerabilities in Express and Node Public-Key-Pins
header to prevent person-in-the-middle attacksX-Download-Options
header to prevent IE from opening untrusted HTML filesCache-Control
,Surrogate-Control
,Pragma
andExpires
headers to prevent users from getting cached versions of your filesX-Content-Type-Options
header to prevent browsers from trying to guess the MIME type, which can have security implicationsReferrer-Policy
header to prevent knowing where a user is referred fromX-XSS-Protection
header to prevent reflected XSS attacks