From b3419152af980ff216b572ace973e6de0c8c1bef Mon Sep 17 00:00:00 2001 From: Baekys97 Date: Thu, 2 Nov 2023 00:37:54 +0900 Subject: [PATCH] =?UTF-8?q?(feat:=20cloudfront,=20localhost=20cors=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=EC=B6=94=EA=B0=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/petgoorm/backend/config/WebSecurityConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/petgoorm/backend/config/WebSecurityConfig.java b/src/main/java/com/petgoorm/backend/config/WebSecurityConfig.java index ab03336..0f0d9e4 100644 --- a/src/main/java/com/petgoorm/backend/config/WebSecurityConfig.java +++ b/src/main/java/com/petgoorm/backend/config/WebSecurityConfig.java @@ -62,6 +62,8 @@ public CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); configuration.addAllowedOrigin("https://petgoorm.life"); + configuration.addAllowedOrigin("https://d2biune7179vay.cloudfront.net"); + configuration.addAllowedOrigin("http://localhost:3000"); configuration.addAllowedHeader("*"); configuration.addAllowedMethod("*"); configuration.setAllowCredentials(true);