summaryrefslogtreecommitdiff
path: root/sw-server/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sw-server/src/main')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSecurityConfig.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSecurityConfig.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSecurityConfig.kt
index f590c1e7..4b44e2f1 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSecurityConfig.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSecurityConfig.kt
@@ -10,5 +10,5 @@ class WebSecurityConfig {
// this disables default authentication settings
@Bean
- fun filterChain(http: HttpSecurity): SecurityFilterChain? = http.cors().and().csrf().disable().build()
+ fun filterChain(http: HttpSecurity): SecurityFilterChain? = http.cors {}.csrf { it.disable() }.build()
}
bgstack15