on-internet
← Community

"An expected CSRF token cannot be found" using Spring boot 3.0.5

Stack Overflow ·

I am using Spring boot 3.0.5 along with Spring Security 6. I am facing this issue when I am trying to call an endpoint to register an account into the application: An expected CSRF token cannot be found @Configuration @EnableWebSecurity @RequiredArgsConstructor public class SecurityConfig { private final JwtAuthenticationFilter jwtAuthenticationFilter; private final AuthenticationProvider authenticationProvider; @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { return http .csrf(AbstractHttpConfigurer::disable) .authorizeHttpRequests() .requestMatchers(

Comments

Sign in or sign up to comment and upvote.

No comments yet.