NestJS - Middleware
Which of the following is a correct way to enable CORS globally in a NestJS application?
app.enableCors().app.use(cors()) is possible but less idiomatic. app.set('cors', true) and app.apply(cors()).forRoutes('*') are incorrect for global CORS enabling.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions