在服务端上设置一下header,如response.header("Access-Control-Allow-Origin","*"); 转载于:https://www.cnblogs.com/leehongee/p/3598317.html