jeecg框架解决跨域问题
controller层
方法体中添加如下代码
response.setHeader("Access-Control-Allow-Origin", "*");
response.setContentType("application/json");
response.setHeader("Cache-Control", "no-store");
controller层
方法体中添加如下代码
response.setHeader("Access-Control-Allow-Origin", "*");
response.setContentType("application/json");
response.setHeader("Cache-Control", "no-store");