Hi Martin,

do you mean the Credentials within the Authorization-Header in this sample?

In this case, you don't have to do anything on clientside but only activate 
headers on serverside with your CORS-Solution.

Wishes,
Manfred

Am Freitag, 8. Januar 2016 17:41:06 UTC+1 schrieb Martin Wawrusch:
>
> 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.

Reply via email to