Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
emilianya committed Nov 22, 2023
1 parent 7fb4239 commit cbc4026
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 @@ -45,7 +45,7 @@ app.use(express.raw({type: 'image/*', limit: '10mb'}));
// Allow CORS usage
app.use((req, res, next) => {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "*");
res.header("Access-Control-Allow-Headers", "*,Authorization");
res.header("Access-Control-Allow-Methods", "*");

// Define reply method, to set status code accordingly
Expand Down

1 comment on commit cbc4026

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes deployed to server
Branch dev

Please sign in to comment.