angular4 跨域携带cookie的设置

例如post请求

在请求options里面设置{ "withCredentials": true };

let options = new RequestOptions({ "withCredentials": true });
this.http.post( url, body, options)

 

转载于:https://www.cnblogs.com/geektimi/p/7268338.html

你可能感兴趣的:(javascript,ViewUI)