We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456419b commit 80e8f9aCopy full SHA for 80e8f9a
servlet/spring-boot/java/jwt/login/src/main/java/example/RestConfig.java
@@ -65,7 +65,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
65
.authorizeHttpRequests((authorize) -> authorize
66
.anyRequest().authenticated()
67
)
68
- .csrf((csrf) -> csrf.ignoringAntMatchers("/token"))
+ .csrf((csrf) -> csrf.ignoringRequestMatchers("/token"))
69
.httpBasic(Customizer.withDefaults())
70
.oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt)
71
.sessionManagement((session) -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
0 commit comments