mirror of
https://github.com/AlistGo/alist.git
synced 2025-11-25 03:15:10 +08:00
🐛 add range header for pdf.js
This commit is contained in:
@@ -57,6 +57,6 @@ func InitApiRouter(r *gin.Engine) {
|
||||
func Cors(r *gin.Engine) {
|
||||
config := cors.DefaultConfig()
|
||||
config.AllowAllOrigins = true
|
||||
config.AllowHeaders = append(config.AllowHeaders, "Authorization")
|
||||
config.AllowHeaders = append(config.AllowHeaders, "Authorization", "range")
|
||||
r.Use(cors.New(config))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user