nestjs cors origin

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

Also in JavaScript: