File tree Expand file tree Collapse file tree
backend/src/main/java/ch/xxx/maps/adapter/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import org .springframework .security .config .http .SessionCreationPolicy ;
2020import org .springframework .security .web .SecurityFilterChain ;
2121import org .springframework .security .web .header .writers .XXssProtectionHeaderWriter .HeaderValue ;
22- import org .springframework .security .web .util .matcher .AntPathRequestMatcher ;
2322
2423@ Configuration
2524@ EnableWebSecurity
@@ -29,7 +28,7 @@ public class SecurityConfig {
2928 public SecurityFilterChain configure (HttpSecurity http ) throws Exception {
3029 HttpSecurity result = http
3130 .authorizeHttpRequests (
32- authorize -> authorize .requestMatchers (AntPathRequestMatcher . antMatcher ( "/**" ) ).permitAll ())
31+ authorize -> authorize .requestMatchers ("/**" ).permitAll ())
3332 .csrf (myCsrf -> myCsrf .disable ())
3433 .sessionManagement (mySm -> mySm .sessionCreationPolicy (SessionCreationPolicy .STATELESS ))
3534 .headers (myHeaders -> myHeaders .contentSecurityPolicy (myCsp -> myCsp .policyDirectives (
You can’t perform that action at this time.
0 commit comments