CORS

Getting started

const app = await NestFactory.create(AppModule);
app.enableCors();
await app.listen(3000);

const app = await NestFactory.create(AppModule, { cors: true });
await app.listen(3000);