title: AngularJS: $HTTP.GET is getting cancelled
body: <p>I am trying to use $http service of angularJS but it doesn't seem to work. I have read up online about such an issue but the solutions given doesn't help. I have the following in my controller:</p>
  
  <pre><code>app.controller('Ctrl', function($scope, $http){    
      var url = http://someurl?name=foo;
      $scope.submitRules = function(){
          $http({method: 'GET', url: url}).
                success(function(data, status) {
                  $scope.status = status;
                  $scope.data = data;
                }).
                error(function(data, status) {
                  $scope.data = data || "Request failed";
                  $scope.status = status;
                });
      };
  });
  </code></pre>
  
  <p>I am using this version of angularJS <code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js"&gt;&lt;/script&gt;</code></p>
  
  <p>Whenever I try sending the request it shows that the request status is <strong>cancelled</strong>. The URL that I am sending the request to is very well working it just doesn't work form angularJS.
  Can someone help?</p>