personal-site/vercel.json

25 lines
985 B
JSON
Raw Normal View History

2023-08-21 08:42:08 +00:00
{
"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" }
]
}
2023-08-21 08:59:41 +00:00
],
"rewrites": [
{
"source": "/api/:path*",
"destination": "/api/:path*",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS" },
{ "key": "Access-Control-Allow-Headers", "value": "X-Requested-With,content-type" }
]
}
2023-08-21 08:42:08 +00:00
]
}