From 1ac3e6b8e07695712e0f8cb4bf952c84541ae691 Mon Sep 17 00:00:00 2001 From: dragontaek-lee Date: Thu, 28 Mar 2024 21:16:54 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20=EC=B6=94=EA=B0=80=EB=90=9C=20=EC=96=B4?= =?UTF-8?q?=EB=93=9C=EB=AF=BC=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/sopt/makers/operation/config/SecurityConfig.java | 2 ++ .../java/org/sopt/makers/operation/config/ValueConfig.java | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/operation-auth/src/main/java/org/sopt/makers/operation/config/SecurityConfig.java b/operation-auth/src/main/java/org/sopt/makers/operation/config/SecurityConfig.java index ce3aa176..cd21f2fb 100644 --- a/operation-auth/src/main/java/org/sopt/makers/operation/config/SecurityConfig.java +++ b/operation-auth/src/main/java/org/sopt/makers/operation/config/SecurityConfig.java @@ -74,6 +74,8 @@ public CorsConfigurationSource corsConfigurationSource() { configuration.addAllowedOrigin(valueConfig.getADMIN_PROD_URL()); configuration.addAllowedOrigin(valueConfig.getADMIN_DEV_URL()); + configuration.addAllowedOrigin(valueConfig.getADMIN_PROD_URL_LEGACY()); + configuration.addAllowedOrigin(valueConfig.getADMIN_DEV_URL_LEGACY()); configuration.addAllowedOrigin(valueConfig.getADMIN_LOCAL_URL()); configuration.addAllowedHeader("*"); configuration.addAllowedMethod("*"); diff --git a/operation-common/src/main/java/org/sopt/makers/operation/config/ValueConfig.java b/operation-common/src/main/java/org/sopt/makers/operation/config/ValueConfig.java index 8070b02a..cdeaa8a7 100644 --- a/operation-common/src/main/java/org/sopt/makers/operation/config/ValueConfig.java +++ b/operation-common/src/main/java/org/sopt/makers/operation/config/ValueConfig.java @@ -22,6 +22,10 @@ public class ValueConfig { private String ADMIN_PROD_URL; @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; @Value("${notification.key}")