|
@@ -70,7 +70,8 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
|
|
|
public void addCorsMappings(CorsRegistry registry) {
|
|
|
// 개발에서 사용할 때는 Proxy 를 이용하기 때문에 Origins 에 로컬서버를 추개해 주어야 함.
|
|
|
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(","))
|
|
|
.allowedHeaders("*")
|
|
|
.allowCredentials(true)
|