Skip to content

Commit

Permalink
chore: Adding the cors configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaacharyaa committed Apr 9, 2024
1 parent f49c824 commit b1312da
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion backend/vercel.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"rewrites": [{ "source": "/(.*)", "destination": "/api" }]
"routes": [
{
"src": "/(.*)",
"dest": "./api/",
"methods": ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
"headers": {
"Access-Control-Allow-Origin": "*"
}
}
]
}

0 comments on commit b1312da

Please sign in to comment.