前端从网关进行调用,跨域问题解决
This commit is contained in:
@@ -8,9 +8,10 @@ import org.springframework.web.filter.CorsFilter;
|
||||
|
||||
/**
|
||||
* 全局跨域配置
|
||||
* 注意:前端从网关进行调用时不需要配置
|
||||
* Created by macro on 2019/7/27.
|
||||
*/
|
||||
@Configuration
|
||||
//@Configuration
|
||||
public class GlobalCorsConfig {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user