mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
fix(api): set X-Frame-Options header to same origin for epubreader
This commit is contained in:
parent
6e5e7a942a
commit
85cae8af64
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ class SecurityConfiguration(
|
||||||
}
|
}
|
||||||
.headers { headersConfigurer ->
|
.headers { headersConfigurer ->
|
||||||
headersConfigurer.cacheControl { it.disable() } // headers are set in WebMvcConfiguration
|
headersConfigurer.cacheControl { it.disable() } // headers are set in WebMvcConfiguration
|
||||||
|
headersConfigurer.frameOptions { it.sameOrigin() } // for epubreader iframes
|
||||||
}
|
}
|
||||||
.httpBasic {
|
.httpBasic {
|
||||||
it.authenticationDetailsSource(userAgentWebAuthenticationDetailsSource)
|
it.authenticationDetailsSource(userAgentWebAuthenticationDetailsSource)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue