From a04add7744700075ec66c73c0b1a06d790ace9a4 Mon Sep 17 00:00:00 2001 From: Tben Date: Mon, 21 Aug 2023 09:59:41 +0100 Subject: [PATCH] updates --- vercel.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vercel.json b/vercel.json index 1ca092e..414cf69 100644 --- a/vercel.json +++ b/vercel.json @@ -9,5 +9,16 @@ { "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" } ] } + ], + "rewrites": [ + { + "source": "/api/:path*", + "destination": "/api/:path*", + "headers": [ + { "key": "Access-Control-Allow-Origin", "value": "*" }, + { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS" }, + { "key": "Access-Control-Allow-Headers", "value": "X-Requested-With,content-type" } + ] + } ] }