allow cors to server

This commit is contained in:
Kfir Dayan 2024-01-21 13:17:20 +02:00
parent c241d90c45
commit ce6aa233c5

View file

@ -3,6 +3,7 @@ import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
await app.listen(3000);
}
bootstrap();