We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0f5a9a + ed3bd89 commit c7c1797Copy full SHA for c7c1797
1 file changed
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) // Enable CSRF protection
+ .csrf(Customizer.withDefaults()) // Enable CSRF protection
63
.cors(cors -> cors.configurationSource(corsConfig))
64
.authorizeHttpRequests(authorizationManagerRequestMatcherRegistry -> {
65
authorizationManagerRequestMatcherRegistry.requestMatchers(publicRoutesList.toArray(new String[0])).permitAll();
0 commit comments