It makes me crazy. First, I upload the angular.js file, then search for "xhr.setRequestHead". All the problems are here. I tried to put some magazines to see what was happening.
forEach(headers, function(value, key) {
key = key.trim();
value = value.trim();
console.log("******************** key: " + key);
console.log("******************** value: " + value);
console.log('value: Basic vs ' + value+ ' equal: '+ (value==="Basic"));
console.log('value.length: ' + value.length);
if (isDefined(value)) {
xhr.setRequestHeader(key, value);
}
});
, angularjs "": "Basic" in. "Basic" 6 5.
, key = key.trim() value = value.trim() .
, .