From f1c22f84a9cdcb71304ca97d257e97988a2bbcf6 Mon Sep 17 00:00:00 2001 From: Tomaas Date: Mon, 26 Aug 2024 22:44:13 +0200 Subject: [PATCH] Add vercel.json --- vercel.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..d52f1db55 --- /dev/null +++ b/vercel.json @@ -0,0 +1,16 @@ +{ + "headers": [ + { + "source": "/script.js/api/(.*)", + "headers": [ + { "key": "Access-Control-Allow-Credentials", "value": "true" }, + { "key": "Access-Control-Allow-Origin", "value": "https://withaffluent.com" }, + { "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" + } + ] + } + ] +}