Check out this tutorial/blog:

http://jasonwatmore.com/post/2016/08/16/angular-2-jwt-authentication-example-tutorial

On Fri, Jan 20, 2017 at 2:36 PM, Anil Mathew <mathew.a...@gmail.com> wrote:

> Hi,
>
>    I am using Angular2  and  I am trying to find a way to send some header
> to the server for every REST API call? I am trying to avoid writing code to
> set the header for each API call though.
>
>    Can anyone please help me how to do this?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to