mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-04 08:54:38 +08:00
feat: put directly api
This commit is contained in:
@ -94,6 +94,6 @@ func Init(r *gin.Engine) {
|
||||
func Cors(r *gin.Engine) {
|
||||
config := cors.DefaultConfig()
|
||||
config.AllowAllOrigins = true
|
||||
config.AllowHeaders = append(config.AllowHeaders, "Authorization", "range", "File-Path")
|
||||
config.AllowHeaders = append(config.AllowHeaders, "Authorization", "range", "File-Path", "As-Task")
|
||||
r.Use(cors.New(config))
|
||||
}
|
||||
|
Reference in New Issue
Block a user