Hi All,
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.get("http://some.com/user",{ withCredentials: true})
According to the API preview I have implemented this Angular 2 code but it does
not include credentials:
http.get("http://some.com/user", {
headers: myHeaders,
credentials: RequestCredentialsOpts.Include
}).toRx()
.map(res => res.json())
.subscribe(
// onNext callback
data => this.successHandler(data),
// onError callback
err => this.failure(err)
);
Any idea how can I configure the request?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.