From bc84a413f731ff1899a29754c0accc6dda2b8d2b Mon Sep 17 00:00:00 2001 From: hieudoanm Date: Sun, 26 Jan 2025 18:30:10 +0700 Subject: [PATCH] update vercel.json --- vercel.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 1377a25..4c8bfa5 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,11 @@ "routes": [ { "src": "/(.*)", - "dest": "api/main.go" + "dest": "api/main.go", + "methods": ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"], + "headers": { + "Access-Control-Allow-Origin": "*" + } } ] }