We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7861336 commit 30cab69Copy full SHA for 30cab69
backend/src/main.ts
@@ -4,6 +4,7 @@ import { ValidationPipe } from '@nestjs/common';
4
5
async function bootstrap() {
6
const app = await NestFactory.create(AppModule);
7
+ app.enableCors();
8
app.useGlobalPipes(new ValidationPipe({ whitelist: true }));
9
await app.listen(process.env.PORT ?? 3000);
10
}
0 commit comments