Node.js · Middle · Question 42 of 75
What does the helmet middleware do?
- ✓Correct answer: Sets security-related HTTP headers like
Content-Security-PolicyandStrict-Transport-Security - 2Encrypts the database
- 3Blocks bots by IP
Explanation
It's a quick way to apply sensible header defaults in Express. It doesn't replace input validation, authentication or rate limiting.