Skip to content

Commit

Permalink
updated header options
Browse files Browse the repository at this point in the history
  • Loading branch information
jazicorn committed Oct 5, 2023
1 parent 3f75d88 commit 374e80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class App {
"optionsSuccessStatus": 204
}));
this.app.use( "/", (req, res, next) => {
res.setHeader('access-control-allow-origin', '*');
res.setHeader('Access-control-allow-origin', '*');
res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization");
res.setHeader('Access-Control-Allow-Methods', 'PUT, POST, GET, DELETE, OPTIONS');
next();
Expand Down

0 comments on commit 374e80d

Please sign in to comment.