From f9567bf3d38bd3ed46f59c20624ebc3a4d32aa29 Mon Sep 17 00:00:00 2001 From: suminiee Date: Tue, 20 Aug 2024 15:28:52 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20MVC=20allowedOrigins=20=EB=A7=81?= =?UTF-8?q?=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/medicare/neulpeum/config/WebMvcConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/medicare/neulpeum/config/WebMvcConfig.java b/src/main/java/com/medicare/neulpeum/config/WebMvcConfig.java index 2b0256a..8dcc423 100644 --- a/src/main/java/com/medicare/neulpeum/config/WebMvcConfig.java +++ b/src/main/java/com/medicare/neulpeum/config/WebMvcConfig.java @@ -10,7 +10,8 @@ public class WebMvcConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("http://localhost:3000", - "http://0.0.0.0:3000") + "http://0.0.0.0:3000", + "https://d14yvif52hqxqx.cloudfront.net/") .allowedMethods("GET","POST","PUT","DELETE", "PATCH") .allowCredentials(true);