From 0687e533990cd2f1c6040c0603f8487349bde8d4 Mon Sep 17 00:00:00 2001 From: Rustam Musin Date: Wed, 28 Feb 2024 12:19:07 +0000 Subject: [PATCH] Remove Cookie processor --- .../github/jvmusin/polybacs/PolybacsApplication.kt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/kotlin/io/github/jvmusin/polybacs/PolybacsApplication.kt b/src/main/kotlin/io/github/jvmusin/polybacs/PolybacsApplication.kt index c2700b6..5171ecd 100644 --- a/src/main/kotlin/io/github/jvmusin/polybacs/PolybacsApplication.kt +++ b/src/main/kotlin/io/github/jvmusin/polybacs/PolybacsApplication.kt @@ -75,17 +75,4 @@ class WebSocketConfig( isCreateSession = true }) } - - @Bean - fun tomcatContextCustomizer(): TomcatContextCustomizer { - val cookieProcessor = Rfc6265CookieProcessor() - cookieProcessor.setSameSiteCookies("None") - cookieProcessor.partitioned = true - // Would be great if we could set "Secure" here and not in application.yaml - // For the Partitioned support see https://github.com/spring-projects/spring-framework/issues/31454 - return TomcatContextCustomizer { context: Context -> - context.usePartitioned = true - context.cookieProcessor = cookieProcessor - } - } }