From da2c2c5c4ab6c9917fe7a32200090af2d6702922 Mon Sep 17 00:00:00 2001 From: yeseul106 <20191037@sungshin.ac.kr> Date: Sun, 10 Dec 2023 02:59:16 +0900 Subject: [PATCH] =?UTF-8?q?[#101]=20add:=20cors=20allow=20origin=20dev=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=20url=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/makers/crew/main/common/config/SecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/org/sopt/makers/crew/main/common/config/SecurityConfig.java b/main/src/main/java/org/sopt/makers/crew/main/common/config/SecurityConfig.java index f48100fb..7f9036ce 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/common/config/SecurityConfig.java +++ b/main/src/main/java/org/sopt/makers/crew/main/common/config/SecurityConfig.java @@ -69,8 +69,8 @@ SecurityFilterChain devSecurityFilterChain(HttpSecurity http) throws Exception { CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); configuration.setAllowedOrigins( - Arrays.asList("https://playground.sopt.org/", "http://localhost:3000", - "https://sopt-internal-dev.pages.dev")); + Arrays.asList("https://playground.sopt.org/", "http://localhost:3000/", + "https://sopt-internal-dev.pages.dev/")); configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PATCH", "DELETE", "OPTIONS")); configuration.addAllowedHeader("*"); configuration.setAllowCredentials(false);