Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the purpose of the helmet package in Express?

  1. A To compress responses
  2. B To set a set of security-related HTTP headers
  3. C To handle authentication
  4. 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.

All NodeJS MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as