Skip to content

Commit

Permalink
adding vercel.json for cors
Browse files Browse the repository at this point in the history
  • Loading branch information
realpxd committed Jan 26, 2024
1 parent b62b868 commit c96d18f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions x-clone-frontend/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"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" }
]
}
]
}

0 comments on commit c96d18f

Please sign in to comment.