SUPPORT-9170: deny version request
This commit is contained in:
parent
fdf59ecbce
commit
7a0d568de1
1 changed files with 2 additions and 0 deletions
|
|
@ -60,6 +60,8 @@ public class SecurityConfig {
|
||||||
http.authorizeHttpRequests(
|
http.authorizeHttpRequests(
|
||||||
(authorizeHttpRequests) -> authorizeHttpRequests.requestMatchers(PERMIT_ALL)
|
(authorizeHttpRequests) -> authorizeHttpRequests.requestMatchers(PERMIT_ALL)
|
||||||
.permitAll()
|
.permitAll()
|
||||||
|
.requestMatchers("/version")
|
||||||
|
.denyAll()
|
||||||
.anyRequest()
|
.anyRequest()
|
||||||
.authenticated())
|
.authenticated())
|
||||||
.csrf((csrf) -> csrf.csrfTokenRepository(tokenRepository)
|
.csrf((csrf) -> csrf.csrfTokenRepository(tokenRepository)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue