title: NetworkError: 405 Method Not Allowed AngularJS REST
body: <p>In AngularJS, I had the following function, which worked fine:</p>
  
  <pre><code>$http.get( "fruits.json" ).success( $scope.handleLoaded );
  </code></pre>
  
  <p>Now I would like to change this from a file to a url (that returns json using some sweet Laravel 4):</p>
  
  <p><code>$http.get( "http://localhost/fruitapp/fruits").success( $scope.handleLoaded );</code></p>
  
  <p>The error I get is:</p>
  
  <pre><code>"NetworkError: 405 Method Not Allowed - http://localhost/fruitapp/fruits"
  </code></pre>
  
  <p>What's the problem? Is it because fruit.json was "local" and localhost is not?</p>