What is the purpose of the helmet package in Express?
- A To compress responses
- B To set a set of security-related HTTP headers
- C To handle authentication
- D To validate request bodies
Answer
To set a set of security-related HTTP headers
Helmet sets headers such as Content-Security-Policy, X-Frame-Options and Strict-Transport-Security with sensible defaults.





