例如post请求
在请求options里面设置{ "withCredentials": true };
let options = new RequestOptions({ "withCredentials": true });
this.http.post( url, body, options)
如果觉得《angular4 跨域携带cookie的设置》对你有帮助,请点赞、收藏,并留下你的观点哦!
时间:2020-10-22 13:04:20
例如post请求
在请求options里面设置{ "withCredentials": true };
let options = new RequestOptions({ "withCredentials": true });
this.http.post( url, body, options)
如果觉得《angular4 跨域携带cookie的设置》对你有帮助,请点赞、收藏,并留下你的观点哦!