Skip to content

Commit 4f3dad1

Browse files
committed
fix: update
1 parent 35abd21 commit 4f3dad1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/src/main/java/ch/xxx/maps/adapter/config/SecurityConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.springframework.security.config.http.SessionCreationPolicy;
2020
import org.springframework.security.web.SecurityFilterChain;
2121
import 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(

0 commit comments

Comments
 (0)