I am working with Angular 2 and I am trying to send HTTP request with credentials:
This Angular 1 code works well, it includes the credentials:
$http
I'm using angular2@2.0.0-alpha.37
;
If you add code in xhr_backed.js
, You can send 'credentials' to server
this._xhr.withCredentials = true;
var XHRConnection = (function() {
function XHRConnection(req, browserXHR, baseResponseOptions) {
........
this._xhr = browserXHR.build();
this._xhr.withCredentials = true;
........
:)