File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
backend/src/main/java/ch/xxx/maps/adapter/config Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 19
19
import org .springframework .security .config .http .SessionCreationPolicy ;
20
20
import org .springframework .security .web .SecurityFilterChain ;
21
21
import org .springframework .security .web .header .writers .XXssProtectionHeaderWriter .HeaderValue ;
22
- import org .springframework .security .web .util .matcher .AntPathRequestMatcher ;
23
22
24
23
@ Configuration
25
24
@ EnableWebSecurity
@@ -29,7 +28,7 @@ public class SecurityConfig {
29
28
public SecurityFilterChain configure (HttpSecurity http ) throws Exception {
30
29
HttpSecurity result = http
31
30
.authorizeHttpRequests (
32
- authorize -> authorize .requestMatchers (AntPathRequestMatcher . antMatcher ( "/**" ) ).permitAll ())
31
+ authorize -> authorize .requestMatchers ("/**" ).permitAll ())
33
32
.csrf (myCsrf -> myCsrf .disable ())
34
33
.sessionManagement (mySm -> mySm .sessionCreationPolicy (SessionCreationPolicy .STATELESS ))
35
34
.headers (myHeaders -> myHeaders .contentSecurityPolicy (myCsp -> myCsp .policyDirectives (
You can’t perform that action at this time.
0 commit comments