From c168cac34cae26f9a1e6ee252132acca0ce9292d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=84=B8=EC=A4=80?= <74056843+sejoon00@users.noreply.github.com> Date: Tue, 27 Aug 2024 01:20:43 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[feat][#80]=20cors=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/bbo_gak/global/config/security/SecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/server/bbo_gak/global/config/security/SecurityConfig.java b/src/main/java/com/server/bbo_gak/global/config/security/SecurityConfig.java index ef04ebf..6de60df 100644 --- a/src/main/java/com/server/bbo_gak/global/config/security/SecurityConfig.java +++ b/src/main/java/com/server/bbo_gak/global/config/security/SecurityConfig.java @@ -65,8 +65,8 @@ public CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); configuration.setAllowedOrigins( List.of("http://114.70.23.79:8080", "http://localhost:8080", "http://52.65.6.74:8080", - "http://localhost:3000", "http://118.67.129.12", "https://bbogak.com", "https://www.bbogak.com/", - "https://dev.bbogak.com/")); + "http://localhost:3000", "http://118.67.129.12", "https://bbogak.com", "https://www.bbogak.com", + "https://dev.bbogak.com")); configuration.addAllowedMethod("*"); configuration.setAllowedHeaders(List.of("*")); // 허용할 헤더 configuration.setAllowCredentials(true); From 345e5269436defd7921f84f0baa0616fdb71e94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=84=B8=EC=A4=80?= <74056843+sejoon00@users.noreply.github.com> Date: Tue, 27 Aug 2024 01:21:08 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[feat][#80]=20cors=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/server/bbo_gak/global/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/server/bbo_gak/global/config/WebConfig.java b/src/main/java/com/server/bbo_gak/global/config/WebConfig.java index 57e249b..dabb4c9 100644 --- a/src/main/java/com/server/bbo_gak/global/config/WebConfig.java +++ b/src/main/java/com/server/bbo_gak/global/config/WebConfig.java @@ -25,7 +25,7 @@ public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("http://114.70.23.79:8080", "http://localhost:8080", "http://52.65.6.74:8080", - "http://localhost:3000", "https://www.bbogak.com/", "https://dev.bbogak.com/") + "http://localhost:3000", "https://www.bbogak.com", "https://dev.bbogak.com") .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") .allowedHeaders("*") .allowCredentials(true);