fix: CORS AllowMethods에 PATCH 추가
All checks were successful
Server CI/CD / deploy (push) Successful in 35s

유저 권한 변경(PATCH /api/users/:id/role) CORS 오류 수정

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 23:43:57 +09:00
parent f547593c6f
commit 2b8d342896

View File

@@ -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)