Skip to content

Commit

Permalink
security - allow health path
Browse files Browse the repository at this point in the history
  • Loading branch information
chinnawatsut committed Mar 22, 2024
1 parent cbdece7 commit 05cde13
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http) throws Excepti
return http.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(
requests ->
requests.requestMatchers("/swagger-ui/**", "/v3/api-docs/**")
requests.requestMatchers(
"/swagger-ui/**",
"/v3/api-docs/**",
"/api/*/health")
.permitAll()
.anyRequest()
.authenticated())
Expand Down

0 comments on commit 05cde13

Please sign in to comment.