refactor: replace private property with method

This commit is contained in:
Gauthier Roebroeck 2022-11-10 17:07:50 +08:00
parent 50524b9e5d
commit 3e2d2cfe14

View file

@ -28,7 +28,7 @@ class CorsConfiguration {
"/**",
CorsConfiguration().applyPermitDefaultValues().apply {
allowedOrigins = komgaProperties.cors.allowedOrigins
allowedMethods = HttpMethod.values().map { it.name }
allowedMethods = HttpMethod.values().map { it.name() }
allowCredentials = true
addExposedHeader(HttpHeaders.CONTENT_DISPOSITION)
addExposedHeader(sessionHeaderName)