From 3fe3ce9aabef91890274b27dc979193eede81f7b Mon Sep 17 00:00:00 2001 From: ebcho Date: Fri, 12 Jan 2024 11:23:42 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20swagger=20=EA=B6=8C=ED=95=9C=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/config/WebSecurityConfig.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/core-security/src/main/java/com/pgms/coresecurity/security/config/WebSecurityConfig.java b/core/core-security/src/main/java/com/pgms/coresecurity/security/config/WebSecurityConfig.java index c72eadb1..fb887857 100644 --- a/core/core-security/src/main/java/com/pgms/coresecurity/security/config/WebSecurityConfig.java +++ b/core/core-security/src/main/java/com/pgms/coresecurity/security/config/WebSecurityConfig.java @@ -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); } @@ -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 -> {