I am trying to put an authorization header in my requests but it doesn\'t work.
I am using this:
var config = {headers: { \'Authorization\': token
Authorization can't be plain.
specify weather its a Basic or Bearer Authorization
Basic
Bearer
Something like
$http.defaults.headers.common['Authorization'] = 'Basic ' + token;
or
$http.defaults.headers.common['Authorization'] = 'Bearer ' + token;