From a95d82dea49227feeefedf6a58a3593da307e128 Mon Sep 17 00:00:00 2001 From: Jacob Marshall <29145479+jacobhq@users.noreply.github.com> Date: Sun, 14 Mar 2021 08:15:20 +0000 Subject: Allow cross origin on Vercel deployments --- exampleSite/vercel.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 exampleSite/vercel.json diff --git a/exampleSite/vercel.json b/exampleSite/vercel.json new file mode 100644 index 0000000..53aef1d --- /dev/null +++ b/exampleSite/vercel.json @@ -0,0 +1,12 @@ +{ + "headers": [ + { + "source": "/(.*)", + "headers": [ + { "key": "Access-Control-Allow-Origin", "value": "*" }, + { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS" }, + { "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" } + ] + } + ] +} -- cgit v1.2.3-70-g09d2