fix(api): set X-Frame-Options header to same origin for epubreader

This commit is contained in:
Gauthier Roebroeck 2023-11-28 16:50:33 +08:00
parent 6e5e7a942a
commit 85cae8af64

View file

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