From d636a4132489ca8bd200f57e4e810b6de8e2efbb Mon Sep 17 00:00:00 2001 From: Tben Date: Mon, 21 Aug 2023 09:22:04 +0100 Subject: [PATCH] updates --- pages/api/test-route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",