“Provisional headers are shown” in angularjs http.get call
<p>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' </p>

<p>this is my angularjs Service code:-</p>

<pre><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;
    }
});
</code></pre>

<p>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?</p>

<p>I have seen relative posts but could not help me. (<a href="https://stackoverflow.com/questions/21630534/node-js-angular-js-caution-provisional-headers-are-shown">enter link description here</a>)</p>

<p>Could someone please advise me?</p>