misc: Allow CORS in vercel.json
This commit is contained in:
1 parent
16ff3055b0
commit
3bc9c67bc4
2 files changed
+22
-2
No files matched your search
+22
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user