Skip to content

Commit e1a021f

Browse files
committed
Cors Fix 2
1 parent 11a4012 commit e1a021f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

vercel.json

+15
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@
2222
"value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
2323
}
2424
]
25+
},
26+
{
27+
"source": "/api/(.*)",
28+
"headers": [
29+
{ "key": "Access-Control-Allow-Credentials", "value": "true" },
30+
{ "key": "Access-Control-Allow-Origin", "value": "*" },
31+
{
32+
"key": "Access-Control-Allow-Methods",
33+
"value": "GET,OPTIONS,PATCH,DELETE,POST,PUT"
34+
},
35+
{
36+
"key": "Access-Control-Allow-Headers",
37+
"value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
38+
}
39+
]
2540
}
2641
]
2742
}

0 commit comments

Comments
 (0)