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 -> {