Skip to content

Commit

Permalink
update vercel.json with headers
Browse files Browse the repository at this point in the history
  • Loading branch information
SiegfriedBz committed May 21, 2024
1 parent d04b0d0 commit 4a26b38
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
{ "version": 2, "rewrites": [{ "source": "/(.*)", "destination": "/api" }] }
{
"version": 2,
"headers": [
{
"source": "/api/(.*)",
"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"
}
]
}
],
"rewrites": [{ "source": "/(.*)", "destination": "/api" }]
}

0 comments on commit 4a26b38

Please sign in to comment.