标签: http angular
如何让Angular2记住来自Response Headers的所有cookie,并在我访问服务器时将其发送到Request Headers中!
答案 0 :(得分:2)
您应该配置您的请求 let options = new RequestOptions({ headers: headers, withCredentials: true });
let options = new RequestOptions({ headers: headers, withCredentials: true });