From 1a1680862394d60f476062d53c1f761ca5f557e3 Mon Sep 17 00:00:00 2001 From: Tben Date: Mon, 21 Aug 2023 09:34:40 +0100 Subject: [PATCH] updates --- pages/api/test-route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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