Skip to content

Commit

Permalink
Remove Cookie processor
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmusin committed Feb 28, 2024
1 parent 04529e0 commit 0687e53
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/kotlin/io/github/jvmusin/polybacs/PolybacsApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

0 comments on commit 0687e53

Please sign in to comment.