手机端调用接口没有问题、但是前端人员说访问存在跨域问题、无法正常调用
public EiInterfaceQZPO toMail(String biz,HttpServletResponse response){ response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Access-Control-Allow-Headers", "Content-Type,Content-Length, Authorization, Accept,X-Requested-With"); response.setHeader("Access-Control-Allow-Methods","PUT,POST,GET,DELETE,OPTIONS"); response.setHeader("X-Powered-By","Jetty");
设置返回头信息后前端可以正常访问了、接口过多的话、使用过滤器进行处理、、、、、