I have a REST web service I am trying to consume in my AngularJS v1.5 project. I am trying to pass authorization value to the header but I am getting access denied error. I tried options like the one below
$http.defaults.headers.common['Authorization'] = 'Basic encoded_credentials';
Nothing works for me. REST web service is deployed in Tomcat and the URL is in format.
Any help is highly appreciated