Skip to content

Commit 7f20d03

Browse files
committed
[FIX] Enable CORS
1 parent eeb898c commit 7f20d03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ async function bootstrap() {
1515

1616
SwaggerModule.setup('api-docs', app, swaggerDocument);
1717
app.useGlobalPipes(new ValidationPipe({ disableErrorMessages: false, whitelist: true }))
18+
app.enableCors();
1819
await app.listen(process.env.PORT || 3000);
1920
}
2021
bootstrap();

0 commit comments

Comments
 (0)