🐛 add range header for pdf.js

pull/548/head
微凉 2022-01-07 20:28:58 +08:00
parent 10bec31033
commit 876ee49fb0
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}