diff --git a/backend/src/main/java/zipgo/common/config/WebConfig.java b/backend/src/main/java/zipgo/common/config/WebConfig.java index 6f57f92f..663db09e 100644 --- a/backend/src/main/java/zipgo/common/config/WebConfig.java +++ b/backend/src/main/java/zipgo/common/config/WebConfig.java @@ -1,7 +1,6 @@ package zipgo.common.config; import java.util.List; - import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Configuration; import org.springframework.web.method.support.HandlerMethodArgumentResolver; @@ -27,6 +26,7 @@ public class WebConfig implements WebMvcConfigurer { 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 static final String API_SERVER_DOMAIN = "https://api.zipgo.pet"; private final AuthInterceptor authInterceptor; private final LoggingInterceptor loggingInterceptor; @@ -40,7 +40,8 @@ public void addCorsMappings(CorsRegistry registry) { MAIN_SERVER_DOMAIN, DEV_SERVER_DOMAIN, FRONTEND_LOCALHOST, - HTTPS_FRONTEND_LOCALHOST + HTTPS_FRONTEND_LOCALHOST, + API_SERVER_DOMAIN ) .allowCredentials(true) .exposedHeaders(LOCATION, SET_COOKIE);