From 1ecd844b61bba45428b4500daa5c4f85415b80cb Mon Sep 17 00:00:00 2001 From: Kayoung Yoon Date: Fri, 13 Oct 2023 18:03:42 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20localhost=20https=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20(#485)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/zipgo/common/config/WebConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/zipgo/common/config/WebConfig.java b/backend/src/main/java/zipgo/common/config/WebConfig.java index 719f0773..259106e2 100644 --- a/backend/src/main/java/zipgo/common/config/WebConfig.java +++ b/backend/src/main/java/zipgo/common/config/WebConfig.java @@ -24,6 +24,7 @@ public class WebConfig implements WebMvcConfigurer { private static final String MAIN_SERVER_DOMAIN = "https://zipgo.pet"; private static final String DEV_SERVER_DOMAIN = "https://dev.zipgo.pet"; private static final String FRONTEND_LOCALHOST = "http://localhost:3000"; + private static final String HTTPS_FRONTEND_LOCALHOST = "https://localhost:3000"; private final AuthInterceptor authInterceptor; private final LoggingInterceptor loggingInterceptor; @@ -33,7 +34,7 @@ public class WebConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry registry) { registry.addMapping(ALLOW_ALL_PATH) .allowedMethods(ALLOWED_METHODS) - .allowedOrigins(MAIN_SERVER_DOMAIN, DEV_SERVER_DOMAIN, FRONTEND_LOCALHOST) + .allowedOrigins(MAIN_SERVER_DOMAIN, DEV_SERVER_DOMAIN, FRONTEND_LOCALHOST, HTTPS_FRONTEND_LOCALHOST) .exposedHeaders(LOCATION); }