jeecg框架解决跨域问题

controller层
方法体中添加如下代码

response.setHeader("Access-Control-Allow-Origin", "*");
response.setContentType("application/json");
response.setHeader("Cache-Control", "no-store");

posted @ 2019-03-25 11:19  sjqsjq  阅读(3669)  评论(0编辑  收藏  举报