Skip to content

Commit 30cab69

Browse files
committed
chore: enable cors to front end access
1 parent 7861336 commit 30cab69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ValidationPipe } from '@nestjs/common';
44

55
async function bootstrap() {
66
const app = await NestFactory.create(AppModule);
7+
app.enableCors();
78
app.useGlobalPipes(new ValidationPipe({ whitelist: true }));
89
await app.listen(process.env.PORT ?? 3000);
910
}

0 commit comments

Comments
 (0)