mirror of
https://github.com/gotson/komga.git
synced 2025-12-22 00:13:30 +01:00
fix: download current page not working on mobile
This commit is contained in:
parent
b5f19a10af
commit
f98d7915c5
2 changed files with 3 additions and 0 deletions
|
|
@ -803,6 +803,7 @@ export default Vue.extend({
|
|||
new jsFileDownloader({
|
||||
url: this.currentPage.url,
|
||||
withCredentials: true,
|
||||
forceDesktopMode: true,
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue