misc: Allow CORS in vercel.json

This commit is contained in:
Xyphyn committed 2023-07-04 13:31:23 -07:00
1 parent 16ff3055b0
commit 3bc9c67bc4
2 files changed
+22 -2

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
{
"headers": [
{
"source": "/cors/(.*)",
"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"
}
]
}
]
}