Quick question,
I need to incorporate the credentials in requests so that CORS is
supported. How exactly do I do that with the beta version of Angular 2.
Code:
var headers = new Headers();
headers.append('Accept', 'application/json');
headers.append('Content-Type', 'application/json');
headers.append('Authorization', 'Bearer ' +
this._tokenService.accessToken);
//var credentials: RequestCredentialsOpts.Include ????
return this._http.get(finalUrl,{headers: headers});
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.