例如post请求
在请求options里面设置{ "withCredentials": true };
let options = new RequestOptions({ "withCredentials": true });
this .http.post( url, body, options)
查看更多关于angular4 跨域携带cookie的设置的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did222843