mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-01 14:13:07 +08:00
fix(cors): allow all methods (close #2640)
This commit is contained in:
@ -136,5 +136,6 @@ func Cors(r *gin.Engine) {
|
||||
config.AllowAllOrigins = true
|
||||
//config.AllowHeaders = append(config.AllowHeaders, "Authorization", "range", "File-Path", "As-Task", "Password")
|
||||
config.AllowHeaders = []string{"*"}
|
||||
config.AllowMethods = []string{"*"}
|
||||
r.Use(cors.New(config))
|
||||
}
|
||||
|
Reference in New Issue
Block a user