We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7236248 + a5e6ee6 commit 72e859dCopy full SHA for 72e859d
src/main/java/smartpot/com/api/Security/Config/SecurityConfiguration.java
@@ -59,7 +59,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSec) throws Exce
59
}
60
61
return httpSec
62
- .csrf(AbstractHttpConfigurer::disable)
+ .csrf(Customizer.withDefaults()) // Enable CSRF protection
63
.cors(c -> c.configurationSource(corsConfig))
64
.authorizeHttpRequests(authorizationManagerRequestMatcherRegistry -> {
65
authorizationManagerRequestMatcherRegistry.requestMatchers(publicRoutesList.toArray(new String[0])).permitAll();
0 commit comments