From 0c2a1b7791221556497643c0ea3d0ea74c5bfd57 Mon Sep 17 00:00:00 2001 From: tfer2442 Date: Tue, 27 Aug 2024 20:26:19 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20cors=20=ED=95=84=ED=84=B0=20=EC=98=A4?= =?UTF-8?q?=ED=94=88=20(#85)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/haedal/haedalweb/config/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/haedal/haedalweb/config/SecurityConfig.java b/src/main/java/com/haedal/haedalweb/config/SecurityConfig.java index 92f316c..8ef0827 100644 --- a/src/main/java/com/haedal/haedalweb/config/SecurityConfig.java +++ b/src/main/java/com/haedal/haedalweb/config/SecurityConfig.java @@ -50,7 +50,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { CorsConfiguration configuration = new CorsConfiguration(); - configuration.setAllowedOrigins(Collections.singletonList("http://localhost:3000")); + configuration.setAllowedOrigins(Collections.singletonList("http://localhost:3000, http://www.knu-haedal.com")); configuration.setAllowedMethods(Collections.singletonList("*")); configuration.setAllowCredentials(true); configuration.setAllowedHeaders(Collections.singletonList("*"));