|
|
@@ -32,7 +32,8 @@ public class WebConfig extends WebMvcConfigurationSupport {
|
|
|
registry.addInterceptor(staticFileInterceptor);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
+ // TODO gateway 中处理了跨域, 这里不再处理
|
|
|
+ /*@Override
|
|
|
public void addCorsMappings(CorsRegistry registry) {
|
|
|
registry.addMapping("/**")
|
|
|
.allowedOrigins("*")
|
|
|
@@ -40,5 +41,5 @@ public class WebConfig extends WebMvcConfigurationSupport {
|
|
|
.allowCredentials(true)
|
|
|
.maxAge(3600)
|
|
|
.allowedHeaders("*");
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|