In the Web World , We always call REST APIs from our Web Applications .
When We call REST APIs through jQuery or AngularJS , they added few default Request Headers .
But many a time , we need to pass Custom Request Headers for different purposes.
A Common scenario is for Authentication we need to pass Customer Request header .
But how we can add this ?
Lets see the below samples :::
for jQuery , we can easily add Request Headers when we do AJAX Calling .
In AngularJS , If we use $http for REST API calling , we can add Request Header like below , after we create AngularJS Module , we can do :::