I have an angular application that is hitting a node API. Our backend developer has implemented basic auth on the API, and I need to send an auth header in my request.
In the $http doc you can see that you should set the default headers using $httpProvider:
.config(['$httpProvider', function($httpProvider) { $httpProvider.defaults.headers.common['Authorization'] = 'Basic auth'; }]);