php服务端,需要在跨域的地方加这个头: header( 'Access-Control-Allow-Credentials:true' );
前端请求时需要加这个参数 xhrFields:{ withCredentials: true }, 如:
$.ajax({ url: "B. abc.com " , xhrFields:{ withCredentials: true }, });
要发表评论,您必须先登录。