mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-24 06:14:04 +08:00
fix(cors): allow all methods (close #2640)
This commit is contained in:
parent
3fa0217c4b
commit
1f7c1b4f43
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user