diff --git a/pages/api/test-route.ts b/pages/api/test-route.ts index 1ea680d..501b47e 100644 --- a/pages/api/test-route.ts +++ b/pages/api/test-route.ts @@ -2,7 +2,8 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from "next"; import Cors from "cors"; const cors = Cors({ - methods: ["POST", "GET", "HEAD"], + methods: ["GET"], + origin: "*", }); // Helper method to wait for a middleware to execute before continuing