From c32d89430c177c24c0997873451296e459de96c9 Mon Sep 17 00:00:00 2001 From: syahn <496300@naver.com> Date: Mon, 18 Dec 2023 13:43:06 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20corsConfig=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/catchyou/api/config/security/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Api/src/main/java/com/catchyou/api/config/security/SecurityConfig.java b/Api/src/main/java/com/catchyou/api/config/security/SecurityConfig.java index d354a2d..5f20cc6 100644 --- a/Api/src/main/java/com/catchyou/api/config/security/SecurityConfig.java +++ b/Api/src/main/java/com/catchyou/api/config/security/SecurityConfig.java @@ -51,7 +51,7 @@ public PasswordEncoder passwordEncoder() { public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .csrf(AbstractHttpConfigurer::disable) - .cors((Customizer>) corsConfig) + .cors(Customizer.withDefaults()) .formLogin(AbstractHttpConfigurer::disable) .httpBasic(AbstractHttpConfigurer::disable) .headers(AbstractHttpConfigurer::disable)