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 | |
parent | 64556b4b75413ce8b78f9141c788a72350a8626b (diff) | |
parent | a95d82dea49227feeefedf6a58a3593da307e128 (diff) |
Allow cross origin on Vercel deployments #176 from @jacobhq
Allow cross origin on Vercel deployments
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | exampleSite/vercel.json | 12 |
2 files changed, 14 insertions, 0 deletions
@@ -15,6 +15,8 @@ You can also support the creator of this project by **starring, sharing, using c * [**Example site — cstate.mnts.lt**](https://cstate.mnts.lt) * [Source code of the example cState site](https://github.com/cstate/example) +*Thank you to [Netlify](https://www.netlify.com) for hosting our demo websites!* + ### More examples from the internet * [Chocolatey](https://status.chocolatey.org/) 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" } + ] + } + ] +} |