Skip to content

Commit

Permalink
Merge pull request #42 from desci-labs/unblock-preflight
Browse files Browse the repository at this point in the history
CORS unblock options
  • Loading branch information
kadamidev authored Oct 17, 2024
2 parents 2660bdd + d5db638 commit 9f0cae9
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 @@ -25,7 +25,7 @@ app.use(express.json());
app.use(function (_req, res, next) {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Headers", "*");
res.setHeader("Access-Control-Allow-Methods", "GET");
res.setHeader("Access-Control-Allow-Methods", "GET, OPTIONS");
next();
});

Expand Down

0 comments on commit 9f0cae9

Please sign in to comment.