aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2021-03-14 14:29:01 +0200
committerGitHub <noreply@github.com>2021-03-14 14:29:01 +0200
commitff67482820b7a03bbd5855c47a50120fa217829e (patch)
treef1a9a30d79ed2b085001cf6b2ac77b1e87e871b8
parent64556b4b75413ce8b78f9141c788a72350a8626b (diff)
parenta95d82dea49227feeefedf6a58a3593da307e128 (diff)
Allow cross origin on Vercel deployments #176 from @jacobhq
Allow cross origin on Vercel deployments
-rw-r--r--README.md2
-rw-r--r--exampleSite/vercel.json12
2 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2b7af8c..098500a 100644
--- a/README.md
+++ b/README.md
@@ -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" }
+ ]
+ }
+ ]
+}