fix: CORS AllowMethods에 PATCH 추가
All checks were successful
Server CI/CD / deploy (push) Successful in 35s
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:
2
main.go
2
main.go
@@ -57,7 +57,7 @@ func main() {
|
|||||||
app.Use(cors.New(cors.Config{
|
app.Use(cors.New(cors.Config{
|
||||||
AllowOrigins: "https://a301.tolelom.xyz",
|
AllowOrigins: "https://a301.tolelom.xyz",
|
||||||
AllowHeaders: "Origin, Content-Type, Authorization",
|
AllowHeaders: "Origin, Content-Type, Authorization",
|
||||||
AllowMethods: "GET, POST, PUT, DELETE",
|
AllowMethods: "GET, POST, PUT, PATCH, DELETE",
|
||||||
}))
|
}))
|
||||||
|
|
||||||
routes.Register(app, authHandler, annHandler, dlHandler)
|
routes.Register(app, authHandler, annHandler, dlHandler)
|
||||||
|
|||||||
Reference in New Issue
Block a user