I am a novice to angular.js, and I am trying to add some headers to a request:
var config = {headers: { \'Authorization\': \'Basic d2VudHdvcnR
For me the following explanatory snippet worked. Perhaps you shouldn't use ' for header name?
'
{ headers: { Authorization: "Basic " + getAuthDigest(), Accept: "text/plain" } }
I'm using $http.ajax(), though I wouldn't expect that to be a game changer.
$http.ajax()