summaryrefslogtreecommitdiff
path: root/sw-server
diff options
context:
space:
mode:
Diffstat (limited to 'sw-server')
-rw-r--r--sw-server/build.gradle.kts2
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSecurityConfig.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw-server/build.gradle.kts b/sw-server/build.gradle.kts
index b71a4526..ef860c79 100644
--- a/sw-server/build.gradle.kts
+++ b/sw-server/build.gradle.kts
@@ -2,7 +2,7 @@ plugins {
kotlin("jvm")
kotlin("plugin.spring")
kotlin("plugin.serialization")
- id("org.springframework.boot") version "3.0.6"
+ id("org.springframework.boot") version "3.1.1"
}
apply(plugin = "io.spring.dependency-management")
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