diff --git a/.gitignore b/.gitignore index 81689a1f56..150eab0a3c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,6 @@ server/src/main/java/com/capstone/server/dataInitializer/CCTVInitializer.java /ai/TextReID/datasets/imgs ai/imageSearch/results.json ai/imageSearch/search_result_grid.jpg +/myenv +/test +ai/yolov8/.env diff --git a/server/src/main/java/com/capstone/server/config/WebConfig.java b/server/src/main/java/com/capstone/server/config/WebConfig.java index 691ce7020c..7f743e47ce 100644 --- a/server/src/main/java/com/capstone/server/config/WebConfig.java +++ b/server/src/main/java/com/capstone/server/config/WebConfig.java @@ -1,11 +1,10 @@ package com.capstone.server.config; +import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; -import lombok.RequiredArgsConstructor; - @Configuration @RequiredArgsConstructor public class WebConfig implements WebMvcConfigurer { @@ -13,9 +12,9 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry - .addMapping("/**") - .allowedHeaders("*") - .allowedOrigins("*") // TODO: url 수정 - .allowedMethods("*"); + .addMapping("/**") + .allowedHeaders("*") + .allowedOrigins("https://suhwani.me", "https://probee.co.kr", "http://localhost:3000") // TODO: url 수정 + .allowedMethods("*"); } } \ No newline at end of file