Skip to content

Commit

Permalink
chore: swagger 권한 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbc committed Jan 12, 2024
1 parent 30b85aa commit 3fe3ce9
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ private RequestMatcher[] requestPermitAll() {
antMatcher(GET, "/api/*/events/*/seat-area"), // 공연 좌석 구역 목록 조회

// DOCS
antMatcher("/v3/api-docs/**"),
antMatcher("/swagger-ui/**")
antMatcher("/swagger-ui/**"),
antMatcher("/swagger-ui"),
antMatcher("/swagger-ui.html"),
antMatcher("/v2/api-docs"),
antMatcher("/v3/api-docs"),
antMatcher("/webjars/**")
);
return requestMatchers.toArray(RequestMatcher[]::new);
}
Expand Down Expand Up @@ -217,7 +221,7 @@ public SecurityFilterChain securityFilterChainDefault(HttpSecurity http) throws
configureCommonSecuritySettings(http);
http
.authorizeHttpRequests()
.anyRequest().authenticated()
.anyRequest().permitAll()
.and()
.addFilterAfter(jwtAuthenticationFilter, ExceptionTranslationFilter.class)
.exceptionHandling(exception -> {
Expand Down

0 comments on commit 3fe3ce9

Please sign in to comment.