NestJS · Middle · Question 64 of 75

How do you set security headers in a Nest app?

Explanation

Register Helmet before other middleware or routes so its headers apply to every response.

Further reading

Problem with a question

NestJS · Middle · question 64

Test yourself

Take the NestJS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz