In my factory, I have multiple functions that follow this structure:
doFunction: function () {
return $http({
method: 'POST',
url: 'https://localhost:8000/test',
data: {},
headers: {
"My_Header": $rootScope.value,
"Content-Type": "application/json; charset=utf-8"
}
})
}
I have been trying to include a custom header named My_Header
, but it seems like the header is not being added to the request. Can someone help me figure out what I am doing incorrectly?