From 2b8d342896a49276f8f399476f9d4aadc3b1443b Mon Sep 17 00:00:00 2001 From: tolelom <98kimsungmin@naver.com> Date: Tue, 24 Feb 2026 23:43:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20CORS=20AllowMethods=EC=97=90=20PATCH=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 유저 권한 변경(PATCH /api/users/:id/role) CORS 오류 수정 Co-Authored-By: Claude Sonnet 4.6 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c200b42..ad7f620 100644 --- a/main.go +++ b/main.go @@ -57,7 +57,7 @@ func main() { app.Use(cors.New(cors.Config{ AllowOrigins: "https://a301.tolelom.xyz", AllowHeaders: "Origin, Content-Type, Authorization", - AllowMethods: "GET, POST, PUT, DELETE", + AllowMethods: "GET, POST, PUT, PATCH, DELETE", })) routes.Register(app, authHandler, annHandler, dlHandler)