Skip to content

Commit

Permalink
add allow cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kresna Satya committed Jul 20, 2023
1 parent af3061e commit 05a7fc4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"headers": [
{
"source": "/api/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET" },
{ "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" }
]
}
],
"framework": "vite"
}

0 comments on commit 05a7fc4

Please sign in to comment.