From 7eec15fb487edfb749263aa2714fb369bfaad1fc Mon Sep 17 00:00:00 2001 From: dragontaek-lee Date: Sat, 23 Mar 2024 23:58:43 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20=EC=83=88=EB=A1=9C=EC=9A=B4=20?= =?UTF-8?q?=EC=96=B4=EB=93=9C=EB=AF=BC=20=EB=8F=84=EB=A9=94=EC=9D=B8=20cor?= =?UTF-8?q?s=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../makers/operation/security/config/SecurityConfig.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/sopt/makers/operation/security/config/SecurityConfig.java b/src/main/java/org/sopt/makers/operation/security/config/SecurityConfig.java index e9209e47..1b2625b5 100644 --- a/src/main/java/org/sopt/makers/operation/security/config/SecurityConfig.java +++ b/src/main/java/org/sopt/makers/operation/security/config/SecurityConfig.java @@ -31,6 +31,12 @@ public class SecurityConfig { @Value("${admin.url.dev}") private String ADMIN_DEV_URL; + @Value("${admin.url.prod_legacy}") + private String ADMIN_PROD_URL_LEGACY; + + @Value("${admin.url.dev_legacy}") + private String ADMIN_DEV_URL_LEGACY; + @Value("${admin.url.local}") private String ADMIN_LOCAL_URL; @@ -66,6 +72,8 @@ public CorsConfigurationSource corsConfigurationSource() { configuration.addAllowedOrigin(ADMIN_PROD_URL); configuration.addAllowedOrigin(ADMIN_DEV_URL); configuration.addAllowedOrigin(ADMIN_LOCAL_URL); + configuration.addAllowedOrigin(ADMIN_PROD_URL_LEGACY); + configuration.addAllowedOrigin(ADMIN_DEV_URL_LEGACY); configuration.addAllowedHeader("*"); configuration.addAllowedMethod("*"); configuration.setAllowCredentials(true);