angular4 跨域携带cookie的设置

例如post请求

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

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

 

posted @ 2017-08-01 14:22  timiCoder  阅读(1567)  评论(0编辑  收藏  举报