Merge pull request #15205 from GaetanoPiazzolla/JAVA-27461-csrf

JAVA-27461 | removing deprecations.
This commit is contained in:
Alvin Austria 2023-11-14 15:59:27 +01:00 committed by GitHub
commit 357c89c4f1
2 changed files with 4 additions and 5 deletions

View File

@ -53,11 +53,10 @@ public class EmployeeFunctionalConfig {
@Bean @Bean
public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
http.csrf() http.csrf(csrf -> csrf.disable())
.disable() .authorizeExchange(
.authorizeExchange() exchanges -> exchanges.anyExchange().permitAll()
.anyExchange() );
.permitAll();
return http.build(); return http.build();
} }
} }