Skip to content

Commit

Permalink
Cors Fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lelouchB committed Mar 8, 2024
1 parent 11a4012 commit e1a021f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@
"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 e1a021f

Please sign in to comment.