diff --git a/pages/api/test-route.ts b/pages/api/test-route.ts index ae67ad1..6a33f39 100644 --- a/pages/api/test-route.ts +++ b/pages/api/test-route.ts @@ -5,8 +5,8 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from "next"; */ export default function handler(req: NextApiRequest, res: NextApiResponse) { res.setHeader("Access-Control-Allow-Origin", "*"); - res.setHeader("Access-Control-Allow-Methods", "GET,OPTIONS"); - res.setHeader("Access-Control-Allow-Headers", "X-Requested-With,content-type"); + res.setHeader("Access-Control-Allow-Methods", "*"); + res.setHeader("Access-Control-Allow-Headers", "*"); res.status(200).json({ title: "Hello There",