feat: update put cors
This commit is contained in:
parent
e52ad4e4d7
commit
c4cffd4308
|
|
@ -52,7 +52,7 @@ func (m *Middleware) Register() {
|
|||
m.App.Use(cors.New(cors.Config{
|
||||
Next: utils.IsEnabled(m.Cfg.Middleware.Cors.Enable),
|
||||
AllowOrigins: "*",
|
||||
AllowMethods: "HEAD, GET, POST, DELETE, OPTION, PATCH",
|
||||
AllowMethods: "HEAD, GET, POST, PUT, DELETE, OPTION, PATCH",
|
||||
AllowHeaders: "Origin, Content-Type, Accept, Accept-Language, Authorization, X-Requested-With, Access-Control-Request-Method, Access-Control-Request-Headers",
|
||||
ExposeHeaders: "Content-Length, Content-Type",
|
||||
AllowCredentials: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue