No 'Access-Control-Allow-Origin' header is present on the requested resource.
在请求的java方法中加入
ServletActionContext.getResponse().setHeader("Access-Control-Allow-Origin", "*");
即可
参考:[url]http://bbs.csdn.net/topics/390650335?page=1[/url]
在请求的java方法中加入
ServletActionContext.getResponse().setHeader("Access-Control-Allow-Origin", "*");
即可
response.setHeader("Access-Control-Allow-Origin", "*");
参考:[url]http://bbs.csdn.net/topics/390650335?page=1[/url]