Skip to content

Commit 0747b3f

Browse files
authored
Merge pull request #4 from thatapicompany/codex/update-corsoptions-to-allow-x-api-key
Allow x-api-key header in CORS options
2 parents 3771cbb + f504aaa commit 0747b3f

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
"preflightContinue": false,
2323
"optionsSuccessStatus": 204,
2424
"credentials":true,
25-
"allowedHeaders": 'Content-Type, Authorization, Accept, Observe, api_key',
25+
"allowedHeaders": 'Content-Type, Authorization, Accept, Observe, x-api-key',
2626
"exposedHeaders":"Pagination-Count, Pagination-Page, Pagination-Limit, Query-Version"
2727
}
2828
app.enableCors(corsOptions);

0 commit comments

Comments
 (0)