Skip to content

Commit

Permalink
unblock preflight method
Browse files Browse the repository at this point in the history
  • Loading branch information
kadamidev committed Oct 17, 2024
1 parent 2660bdd commit d5db638
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 d5db638

Please sign in to comment.