Skip to content

Commit

Permalink
Add authorization header to cors allow headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed Apr 30, 2024
1 parent 2413be3 commit fbb792b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/buildAndDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- main
- feature/submit-url-management
- feature/authorization-header
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
"Access-Control-Allow-Origin": "*", //"https://cultpodcasts.com",
"Access-Control-Allow-Methods": "GET,HEAD,POST,OPTIONS",
"Access-Control-Max-Age": "86400",
"Access-Control-Allow-Headers": "content-type"
"Access-Control-Allow-Headers": "content-type,authorization"
};

if (request.method === "OPTIONS") {
Expand Down

0 comments on commit fbb792b

Please sign in to comment.