mirror of
https://github.com/gotson/komga.git
synced 2025-12-17 22:13:47 +01:00
refactor: replace private property with method
This commit is contained in:
parent
50524b9e5d
commit
3e2d2cfe14
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue