NestJS · Junior · Question 42 of 75

Where do you configure CORS in a Nest app?

Explanation

Pass allowed origins, methods and credentials. Avoid allowing every origin together with credentials.

Further reading

Problem with a question

NestJS · Junior · question 42

Test yourself

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

Take this quiz