superlogin-demo
superlogin-demo copied to clipboard
Authorization Header in request
Hello,
I am finding that the authorization header in the requests are not being sent to the server. I have traced it through and they get set in ng-superlogin, but when i watch in fiddler they are not there. I get a 401. I tried the requests in postman and can get them to work. I tried superlogindemo and that works for the todo lists but the logout reqest doesn't send the header. Do you know why this is please?
Thanks a lot
Hello,
i found that when i do the following it works:
var req = {
method: 'GET',
url: $scope.baseUrl + '/user/profile',
headers: {
'Authorization': hdrAuthorization
},
data: {}
}
$http(req)
// $http.get($scope.baseUrl + '/user/profile')