This commit is contained in:
Tben 2023-08-21 09:34:40 +01:00
parent 51a02ac5f5
commit 1a16808623

View File

@ -2,7 +2,8 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from "next";
import Cors from "cors"; import Cors from "cors";
const cors = Cors({ const cors = Cors({
methods: ["POST", "GET", "HEAD"], methods: ["GET"],
origin: "*",
}); });
// Helper method to wait for a middleware to execute before continuing // Helper method to wait for a middleware to execute before continuing