Skip to content

Commit 1090aa2

Browse files
vercel config update
1 parent 097660e commit 1090aa2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

vercel.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
{ "version": 2, "rewrites": [{ "source": "/(.*)", "destination": "/api" }] }
1+
{ "version": 2, "rewrites": [{ "source": "/(.*)", "destination": "/api" }], "headers": [
2+
{
3+
"source": "/(.*)",
4+
"headers": [
5+
{ "key": "Access-Control-Allow-Credentials", "value": "true" },
6+
{ "key": "Access-Control-Allow-Origin", "value": "*" },
7+
{ "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
8+
{ "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" }
9+
]
10+
}
11+
] }

0 commit comments

Comments
 (0)