Merge pull request #15205 from GaetanoPiazzolla/JAVA-27461-csrf
JAVA-27461 | removing deprecations.
This commit is contained in:
commit
357c89c4f1
|
@ -53,11 +53,10 @@ public class EmployeeFunctionalConfig {
|
|||
|
||||
@Bean
|
||||
public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
|
||||
http.csrf()
|
||||
.disable()
|
||||
.authorizeExchange()
|
||||
.anyExchange()
|
||||
.permitAll();
|
||||
http.csrf(csrf -> csrf.disable())
|
||||
.authorizeExchange(
|
||||
exchanges -> exchanges.anyExchange().permitAll()
|
||||
);
|
||||
return http.build();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue