ft_transcendence/backend/src/main.ts
2023-05-02 19:15:50 +02:00

18 lines
383 B
TypeScript

import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {
cors: {
origin: '*',
methods: '*',
// preflightContinue: false,
// optionsSuccessStatus: 204,
// credentials: true,
allowedHeaders: '*',
},
});
await app.listen(3000);
}
bootstrap();