From 513d71d24ee975c9ea138f48c4ef2ec8d075f04c Mon Sep 17 00:00:00 2001 From: kmw2378 Date: Fri, 7 Jun 2024 16:50:04 +0900 Subject: [PATCH] =?UTF-8?q?[feat]favicon.cio=20=EC=9A=94=EC=B2=AD=20URL=20?= =?UTF-8?q?permitAll()=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/kakaoshare/backend/common/config/SecurityConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/kakaoshare/backend/common/config/SecurityConfig.java b/src/main/java/org/kakaoshare/backend/common/config/SecurityConfig.java index e608c74a..5e96b6e1 100644 --- a/src/main/java/org/kakaoshare/backend/common/config/SecurityConfig.java +++ b/src/main/java/org/kakaoshare/backend/common/config/SecurityConfig.java @@ -29,6 +29,7 @@ public class SecurityConfig { private static final String CORS_CONFIGURATION_PATTERN = "/**"; public static final String API_V_1 = "/api/v1/"; private static final String ACTUATOR = "/actuator/**"; + private static final String FAVICON_URL = "/favicon.ico"; private static final List ALLOWED_HEADERS = Arrays.asList("Origin", "Content-Type", "Accept", "Authorization", "X-Requested-With"); private static final List ALLOWED_METHODS = Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"); @@ -45,6 +46,7 @@ public SecurityFilterChain filterChain(final HttpSecurity http) throws Exception .requestMatchers(CorsUtils::isPreFlightRequest).permitAll() .requestMatchers(ACTUATOR).permitAll() .requestMatchers(METRICS).permitAll() + .requestMatchers(FAVICON_URL).permitAll() .requestMatchers(API_V_1 + "oauth/login").permitAll() .requestMatchers(API_V_1 + "oauth/logout").authenticated() .requestMatchers(API_V_1 + "oauth/reissue").permitAll()