title: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at .....
body: <p>When using $http.get I have a problem:
  Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ..... This can be fixed by moving the resource to the same domain or enabling CORS</p>
  
  <pre><code>$http.get('...').success(function(data){
          console.log(status);
      }).error(function(data){
          //console.log(data)
      });
  app.config(['$httpProvider', function($httpProvider) {
          $httpProvider.defaults.useXDomain = true;
          delete $httpProvider.defaults.headers.common['X-Requested-With'];
      }
  </code></pre>