From b3763ea4154943a8e06de255565b1dbea4fd2893 Mon Sep 17 00:00:00 2001 From: suyeoniii Date: Thu, 22 Aug 2024 04:41:15 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20#55=20web=EC=9A=A9=20allowed=20orig?= =?UTF-8?q?in=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/routebox/routebox/security/SecurityConfig.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/routebox/routebox/security/SecurityConfig.kt b/src/main/kotlin/com/routebox/routebox/security/SecurityConfig.kt index 917580d..567c505 100644 --- a/src/main/kotlin/com/routebox/routebox/security/SecurityConfig.kt +++ b/src/main/kotlin/com/routebox/routebox/security/SecurityConfig.kt @@ -73,11 +73,13 @@ class SecurityConfig { val corsConfig = CorsConfiguration() corsConfig.allowedOrigins = listOf( "https://api-dev.myroutebox.com", - "https://*.myroutebox.com", + "https://www.myroutebox.com", "https://myroutebox.com", "http://localhost:8080", - // For web local development + // For web "http://localhost:5173", + "https://myroutebox.com", + "https://dev.d1a0dmxvzr7an0.amplifyapp.com" ) corsConfig.allowedMethods = listOf( HttpMethod.GET.name(), From a802c010371965ff229dd16e144f0ec98fc179fb Mon Sep 17 00:00:00 2001 From: suyeoniii Date: Thu, 22 Aug 2024 04:47:20 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20#55=20ktlint=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95,=20cors=20url=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/routebox/routebox/security/SecurityConfig.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/routebox/routebox/security/SecurityConfig.kt b/src/main/kotlin/com/routebox/routebox/security/SecurityConfig.kt index 567c505..2031e82 100644 --- a/src/main/kotlin/com/routebox/routebox/security/SecurityConfig.kt +++ b/src/main/kotlin/com/routebox/routebox/security/SecurityConfig.kt @@ -78,8 +78,8 @@ class SecurityConfig { "http://localhost:8080", // For web "http://localhost:5173", - "https://myroutebox.com", - "https://dev.d1a0dmxvzr7an0.amplifyapp.com" + "https://www.dev.myroutebox.com", + "https://dev.d1a0dmxvzr7an0.amplifyapp.com", ) corsConfig.allowedMethods = listOf( HttpMethod.GET.name(),