Skip to content

Commit

Permalink
cors issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abbi4code committed Sep 7, 2024
1 parent f3f4d5e commit 4714b9c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions server/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@
}
],
"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"
"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"
}
]
}
]
}

0 comments on commit 4714b9c

Please sign in to comment.