关于ajax请求跨域问题

 jQuery中的异步请求跨域的方法:

  xhrFields: {withCredentials: true} 

   当设置为  true时,表示允许跨域;

                        false时,表示禁止跨域

原文地址:https://www.cnblogs.com/laoniaofly/p/ajax.html