Skip to content

Commit 9a854f9

Browse files
committed
백엔드 cors 허용 헤더 설정
1 parent 97b7de6 commit 9a854f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ async function bootstrap() {
88
app.enableCors({
99
origin: [process.env.CLIENT_ENDPOINT],
1010
credentials: true,
11+
allowedHeaders: ['Content-Type', 'Apollo-Require-Preflight'],
1112
});
1213

1314
await app.listen(process.env.PORT ?? 3001);

0 commit comments

Comments
 (0)