79788895

Date: 2025-10-13 03:06:11
Score: 1
Natty:
Report link

The following code works for Springboot 3.3.4 and Spring Security 6.3.3.

    @Bean
    SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
      return http.csrf(csrf -> csrf.ignoringRequestMatchers(new AntPathRequestMatcher("/api/**"))).build();
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Weshome