跨域问题

实现跨域1.可以使用 cors

2.jsonp

3.

response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));
response.setHeader("Access-Control-Allow-Credentials", "true");
response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");

posted @ 2018-06-27 21:49  必有谦卑  阅读(87)  评论(0编辑  收藏  举报