From 76ba3c72c364b97fd40d7b486ea61ac5c121b98b Mon Sep 17 00:00:00 2001 From: btopro Date: Tue, 25 Jun 2024 13:10:55 -0400 Subject: [PATCH] vercel CORS setting --- vercel.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..4b7c76f7a --- /dev/null +++ b/vercel.json @@ -0,0 +1,14 @@ +{ + "headers": [ + { + "source": "/(.*)", + "headers": [ + { "key": "Access-Control-Allow-Credentials", "value": "true" }, + { "key": "Access-Control-Allow-Origin", "value": "*" }, + { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" }, + { "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" } + ] + } + ] + } + \ No newline at end of file