前端从网关进行调用,跨域问题解决

This commit is contained in:
macro
2020-01-04 15:56:18 +08:00
parent 46e6170b78
commit a4242759d7
2 changed files with 33 additions and 1 deletions

View File

@@ -8,9 +8,10 @@ import org.springframework.web.filter.CorsFilter;
/**
* 全局跨域配置
* 注意:前端从网关进行调用时不需要配置
* Created by macro on 2019/7/27.
*/
@Configuration
//@Configuration
public class GlobalCorsConfig {
/**