title: Cross origin requests are only supported for HTTP
body: <p>I'm trying run this code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="myApp"&gt;
  &lt;head&gt;
      &lt;title&gt;Exemple 06&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;!-- Diretiva ng-repeat --&gt;
      &lt;div ng-controller="MyController"&gt;
          &lt;a ng-href="#/"&gt;Page 1&lt;/a&gt; | &lt;a ng-href="#/p2"&gt;Page 2&lt;/a&gt;
          &lt;div ng-view="#/p2"&gt;&lt;/div&gt;
      &lt;/div&gt;
  
      &lt;script src="js/angular.js"&gt;&lt;/script&gt;
      &lt;script src="js/angular-route.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          var myApp = angular.module('myApp', ['ngRoute']);
  
          myApp.config(function($routeProvider){
              $routeProvider
                  .when('/'  , {controller: 'MyController', templateUrl: 'p1.html'})
                  .when('/p2', {controller: 'MyController', templateUrl: 'p2.html'})
                  .otherwise({ redirectTo: '/'});
          });
  
          myApp.controller('MyController', function($scope){
              $scope.nomes = [
                  {id: 1, nome: 'Arthur'},
                  {id: 2, nome: 'Portos'},
                  {id: 3, nome: 'Aramis'}
              ];
          });
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>but the error below occur:</p>
  
  <p>XMLHttpRequest cannot load file:///home/93579551515/Desktop/Angular/p1.html. Cross origin requests are only supported for HTTP. </p>
  
  <p>I don't want to run it on a webserver.</p>