From 18a2f5d833b05bbd37ac982615aac6af220c3c49 Mon Sep 17 00:00:00 2001 From: Markus Ofterdinger Date: Thu, 9 Jan 2025 12:17:07 +0100 Subject: [PATCH] remove open endpoint /actuator/health --- srv/src/main/java/my/bookshop/config/WebSecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java b/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java index 346a784f..18bd091b 100644 --- a/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java +++ b/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java @@ -18,7 +18,7 @@ public class WebSecurityConfig { @Bean public SecurityFilterChain configure(HttpSecurity http) throws Exception { - return http.securityMatchers(s -> s.requestMatchers(antMatcher("/actuator/health"), antMatcher("/swagger/**"))) // + return http.securityMatchers(s -> s.requestMatchers(antMatcher("/swagger/**"))) // .csrf(c -> c.disable()).authorizeHttpRequests(a -> a.anyRequest().permitAll()) .build(); }