SBK 10 months ago
parent
commit
8217e9b84f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/sgc/portal/base/WebMvcConfiguration.java

+ 2 - 1
src/main/java/sgc/portal/base/WebMvcConfiguration.java

@@ -70,7 +70,8 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
     public void addCorsMappings(CorsRegistry registry) {
     public void addCorsMappings(CorsRegistry registry) {
         //  개발에서 사용할 때는 Proxy 를 이용하기 때문에 Origins 에 로컬서버를 추개해 주어야 함.
         //  개발에서 사용할 때는 Proxy 를 이용하기 때문에 Origins 에 로컬서버를 추개해 주어야 함.
         registry.addMapping("/mobile/api/**")
         registry.addMapping("/mobile/api/**")
-        		.allowedOrigins("http://localhost:8100","http://localhost:8101","http://192.168.36.22:8100","http://192.168.0.55:8100","http://192.168.36.37:8100")
+        		//.allowedOrigins("http://localhost:8100","http://localhost:8101","http://192.168.36.22:8100","http://192.168.0.55:8100","http://192.168.36.37:8100")
+        		.allowedOrigins("http://localhost:8100","http://localhost:8101","http://192.168.0.55:8100")
                 .allowedMethods("GET,HEAD,POST,PUT,DELETE,TRACE,OPTIONS,PATCH".split(","))
                 .allowedMethods("GET,HEAD,POST,PUT,DELETE,TRACE,OPTIONS,PATCH".split(","))
                 .allowedHeaders("*")
                 .allowedHeaders("*")
             	.allowCredentials(true)
             	.allowCredentials(true)