mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-25 11:43:29 +00:00
Polish RequestCache continue Kolin Configuration
Issue gh-12089
This commit is contained in:
parent
aac1261f0c
commit
5721b0351e
@ -19,11 +19,8 @@ DefaultSecurityFilterChain springSecurity(HttpSecurity http) throws Exception {
|
|||||||
.Kotlin
|
.Kotlin
|
||||||
[source,kotlin,role="secondary"]
|
[source,kotlin,role="secondary"]
|
||||||
----
|
----
|
||||||
@EnableWebSecurity
|
@Bean
|
||||||
class SecurityConfig {
|
open fun springSecurity(http: HttpSecurity): SecurityFilterChain {
|
||||||
|
|
||||||
@Bean
|
|
||||||
open fun springSecurity(http: HttpSecurity): SecurityFilterChain {
|
|
||||||
val httpRequestCache = HttpSessionRequestCache()
|
val httpRequestCache = HttpSessionRequestCache()
|
||||||
httpRequestCache.setMatchingRequestParameterName("continue")
|
httpRequestCache.setMatchingRequestParameterName("continue")
|
||||||
http {
|
http {
|
||||||
@ -32,7 +29,6 @@ class SecurityConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return http.build()
|
return http.build()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user