From 29a89e094098a6c7dfb6e02c3f3b62c6fa12a7ab Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Fri, 15 Nov 2024 16:32:48 +0900 Subject: [PATCH] refactor:[#84]- refact Security MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cors 변경 --- .../helpmeCookies/global/security/WebSecurityConfig.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/helpmeCookies/global/security/WebSecurityConfig.java b/src/main/java/com/helpmeCookies/global/security/WebSecurityConfig.java index 86ee988..0c3a8a2 100644 --- a/src/main/java/com/helpmeCookies/global/security/WebSecurityConfig.java +++ b/src/main/java/com/helpmeCookies/global/security/WebSecurityConfig.java @@ -75,12 +75,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests((authorize) -> authorize - .requestMatchers(HttpMethod.OPTIONS, "/**").permitAll() // OPTIONS 요청 허용 - .anyRequest().authenticated() - ); - - http.authorizeHttpRequests((authorize) -> - authorize + .requestMatchers(HttpMethod.OPTIONS, "/**").permitAll() .requestMatchers( "/swagger-ui/**", "/swagger-resources",