fix: fix GetUserTitleByID

This commit is contained in:
nihonium 2025-11-27 16:28:09 +03:00
parent 3f0456ba01
commit 37cdc32d5d
Signed by: nihonium
GPG key ID: 0251623741027CFC
4 changed files with 8 additions and 105 deletions

View file

@ -48,7 +48,7 @@ func main() {
r.Use(cors.New(cors.Config{
AllowOrigins: []string{"*"}, // allow all origins, change to specific domains in production
AllowMethods: []string{"GET", "POST", "PUT", "DELETE"},
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH"},
AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,