From 9229bf747dd028237b1cd7b720673c1f29412b50 Mon Sep 17 00:00:00 2001 From: "DESKTOP-71386SR\\hal8h" Date: Sun, 18 Feb 2024 23:24:03 +0900 Subject: [PATCH] =?UTF-8?q?docs=20:=20cors=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20#27?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/sendback/global/config/auth/SecurityConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sendback/global/config/auth/SecurityConfig.java b/src/main/java/com/sendback/global/config/auth/SecurityConfig.java index 10f26e5..061a959 100644 --- a/src/main/java/com/sendback/global/config/auth/SecurityConfig.java +++ b/src/main/java/com/sendback/global/config/auth/SecurityConfig.java @@ -80,7 +80,8 @@ public CorsConfigurationSource corsConfigurationSource() { configuration.addAllowedMethod("*"); configuration.setAllowCredentials(true); configuration.setAllowedOriginPatterns(Collections.singletonList("*")); - + configuration.addAllowedHeader("http://localhost:3000"); + configuration.addAllowedHeader("https://sendback.co.kr"); UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); source.registerCorsConfiguration("/**", configuration); return source;