Skip to content

Commit

Permalink
[feat]favicon.cio 요청 URL permitAll() 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kmw2378 committed Jun 7, 2024
1 parent 369638e commit 513d71d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> ALLOWED_HEADERS = Arrays.asList("Origin", "Content-Type", "Accept", "Authorization", "X-Requested-With");
private static final List<String> ALLOWED_METHODS = Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS");
Expand All @@ -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()
Expand Down

0 comments on commit 513d71d

Please sign in to comment.