Skip to content

Commit

Permalink
Correcting pattern for open-api url
Browse files Browse the repository at this point in the history
  • Loading branch information
abh1navv committed Oct 19, 2024
1 parent 8858700 commit 46985f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

http.authorizeHttpRequests(authorizeRequests -> authorizeRequests.requestMatchers("/swagger-ui/**")
.permitAll()
.requestMatchers("/v3/api-docs/**")
.requestMatchers("/v3/api-docs*/**")
.permitAll());

return http.build();
Expand All @@ -25,7 +25,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@Bean
public WebSecurityCustomizer webSecurityCustomizer() {
return (web) -> web.ignoring()
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**");
.requestMatchers("/swagger-ui/**", "/v3/api-docs*/**");
}

}

0 comments on commit 46985f4

Please sign in to comment.