From 5d2c828ea25d4a318a3b52d3c46aaa1a1213604e Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Tue, 25 Apr 2023 11:15:31 -0700 Subject: [PATCH] Testing vercel CORS config. --- 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 0000000..767f965 --- /dev/null +++ b/vercel.json @@ -0,0 +1,16 @@ +{ + "headers": [ + { + "source": "/api/(.*)", + "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" + } + ] + } + ] +}