diff --git a/src/main/java/com/foru/freebe/config/SecurityConfig.java b/src/main/java/com/foru/freebe/config/SecurityConfig.java index c6d20a38..af888077 100644 --- a/src/main/java/com/foru/freebe/config/SecurityConfig.java +++ b/src/main/java/com/foru/freebe/config/SecurityConfig.java @@ -37,7 +37,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti .addFilterBefore(jwtExceptionFilter, LogoutFilter.class) .authorizeHttpRequests((request) -> request - .requestMatchers("/actuator/health", "/actuator/health/**").permitAll() + .requestMatchers("/actuator/health").permitAll() .requestMatchers("/photographer/join").hasAnyRole("PHOTOGRAPHER_PENDING") .requestMatchers("/photographer/**").hasAnyRole("PHOTOGRAPHER") .requestMatchers("/customer/product/**").permitAll() diff --git a/src/main/java/com/foru/freebe/jwt/filter/JwtAuthenticationFilter.java b/src/main/java/com/foru/freebe/jwt/filter/JwtAuthenticationFilter.java index 4e93301c..7bdfd6c0 100644 --- a/src/main/java/com/foru/freebe/jwt/filter/JwtAuthenticationFilter.java +++ b/src/main/java/com/foru/freebe/jwt/filter/JwtAuthenticationFilter.java @@ -38,6 +38,7 @@ protected boolean shouldNotFilter(HttpServletRequest request) throws ServletExce matchers.add(new AntPathRequestMatcher("/customer/notice/**")); matchers.add(new AntPathRequestMatcher("/login/**")); matchers.add(new AntPathRequestMatcher("/reissue")); + matchers.add(new AntPathRequestMatcher("/actuator/health")); return matchers.stream() .anyMatch((matcher -> matcher.matches(request)));