fix: download current page not working on mobile

This commit is contained in:
Gauthier Roebroeck 2021-03-24 21:55:06 +08:00
parent b5f19a10af
commit f98d7915c5
2 changed files with 3 additions and 0 deletions

View file

@ -803,6 +803,7 @@ export default Vue.extend({
new jsFileDownloader({
url: this.currentPage.url,
withCredentials: true,
forceDesktopMode: true,
})
},
},

View file

@ -7,6 +7,7 @@ import org.gotson.komga.infrastructure.configuration.KomgaProperties
import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Profile
import org.springframework.http.HttpHeaders
import org.springframework.http.HttpMethod
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity
import org.springframework.security.config.annotation.web.builders.HttpSecurity
@ -102,6 +103,7 @@ class SecurityConfiguration(
allowedOrigins = listOf("http://localhost:8081")
allowedMethods = HttpMethod.values().map { it.name }
allowCredentials = true
addExposedHeader(HttpHeaders.CONTENT_DISPOSITION)
}
)
}