Skip to content

Commit

Permalink
fix preflight Access-Control-Allow-Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Jan 24, 2025
1 parent ebfcd90 commit 3928cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const preflight = (request: Request) =>
headers: {
'Access-Control-Allow-Origin': allowOrigin(request),
'Access-Control-Allow-Methods': 'POST',
'Access-Control-Allow-Headers': 'Authorization, Content-Type',
'Access-Control-Allow-Headers': request.headers.get('Access-Control-Allow-Headers') || '',
},
})

Expand Down

0 comments on commit 3928cfb

Please sign in to comment.