Skip to content

Commit

Permalink
feat: ✨ 跨域
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuba-Ahhh committed Oct 4, 2024
1 parent a8cef97 commit c503855
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
{
"version": 2,
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }],
"routes": [
{
"src": "/api/(.*)",
"dest": "/api/index.js",
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type, Accept, Authorization",
"Access-Control-Allow-Credentials": "true"
}
}
]
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}

0 comments on commit c503855

Please sign in to comment.