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" } + ] + } ] }