Skip to content

Commit 0a74ffb

Browse files
fix main.ts allowedHeaders explicit list
1 parent d6721cf commit 0a74ffb

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
@@ -22,7 +22,7 @@ async function bootstrap() {
2222
},
2323
credentials: true,
2424
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
25-
allowedHeaders: '*', // <--- important change
25+
allowedHeaders: ['Content-Type', 'Authorization', 'Accept'], // ✅ explicit list
2626
preflightContinue: false,
2727
optionsSuccessStatus: 204,
2828
});

0 commit comments

Comments
 (0)