I am trying to make an http.get call in angularjs application and i am getting this caution says "Provisional headers are shown" randomnly and especially after long time the application is up and running. In debugger console the status is 'Pending'
this is my angularjs Service code:-
angular.module("projectionsModule")
.factory("prjProjectionsService", function ($q, $http) {
return {
prjProjectionFunction: prjProjectionFunction
} function prjProjectionFunction() {
var defer = $q.defer();
$http.get('/getAllPrjProjections', {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(function (success) {
defer.resolve(success);
}, function (error) {
defer.reject(error);
});
return defer.promise;
}
});
This type of piece of code I am using number of times in different controllers. but randomly same issue is coming in different controllers as well. i am unable to figure out why this is happening?
I have seen relative posts but could not help me. (enter link description here)
Could someone please advise me?