Skip to content

Commit

Permalink
remove open endpoint /actuator/health
Browse files Browse the repository at this point in the history
  • Loading branch information
mofterdinger committed Jan 9, 2025
1 parent 228e05f commit 18a2f5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 18a2f5d

Please sign in to comment.