Skip to content

Commit 1f587ce

Browse files
committed
Disable CORS in main.ts for enhanced security
1 parent 485a2b0 commit 1f587ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ declare const module: any;
2020
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
2121
bodyParser: false,
2222
rawBody: true,
23-
cors: true,
23+
cors: false,
2424
logger,
2525
});
2626
app.use((_: any, res: Response, next: () => void) => {

0 commit comments

Comments
 (0)