diff --git a/pages/api/test-route.ts b/pages/api/test-route.ts index ad2f2fd..ae67ad1 100644 --- a/pages/api/test-route.ts +++ b/pages/api/test-route.ts @@ -4,6 +4,10 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from "next"; * @type {NextApiHandler} */ 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.status(200).json({ title: "Hello There", message: "General Kenobi",