From 1fc51e8e436e6a92eba58ed6833c0d479c26790c Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Wed, 5 Jul 2023 15:53:48 +0200 Subject: Upgrade Spring to 3.1.1 --- .../kotlin/org/luxons/sevenwonders/server/config/WebSecurityConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-server/src/main/kotlin') 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() } -- cgit