diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2021-03-14 14:29:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 14:29:01 +0200 |
commit | ff67482820b7a03bbd5855c47a50120fa217829e (patch) | |
tree | f1a9a30d79ed2b085001cf6b2ac77b1e87e871b8 /exampleSite | |
parent | 64556b4b75413ce8b78f9141c788a72350a8626b (diff) | |
parent | a95d82dea49227feeefedf6a58a3593da307e128 (diff) |
Allow cross origin on Vercel deployments #176 from @jacobhq
Allow cross origin on Vercel deployments
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/vercel.json | 12 |
1 files changed, 12 insertions, 0 deletions
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" } + ] + } + ] +} |