Skip to content

Commit

Permalink
allow options requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipperism committed Jan 16, 2024
1 parent 524775e commit 1096f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/marketplace/order-nonce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default async function handler(
console.log("Before NEXT CORS");
await NextCors(req, res, {
// Options
methods: ["GET", "HEAD", "PUT", "PATCH", "POST", "DELETE"],
methods: ["GET", "HEAD", "PUT", "PATCH", "POST", "DELETE", "OPTIONS"],
origin: "*",
optionsSuccessStatus: 200, // some legacy browsers (IE11, various SmartTVs) choke on 204
});
Expand Down

0 comments on commit 1096f0c

Please sign in to comment.