title: angular.min.js XMLHttpRequest cannot load file
body: <p>[![</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/* app.js */
  
  var model = angular.module('app',['ui.router']);
  
  model.config(function($stateProvider, $urlRouterProvider){
  
   $urlRouterProvider.otherwise('/home');
   
   $stateProvider
   
   .state('home',{
    url: '/home',
    templateUrl: 'view/home.html',
    controller: 'homeController'
   })
  
  });
  
  /* home.js */
  
  model.controller('homeController',function($scope){
  
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!-- index.html --&gt;
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
   &lt;head&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;link rel="stylesheet" type="text/css" href="css/style.css" /&gt;
    &lt;script type="text/javascript" src="js/angular.min.js" &gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="js/angular-ui-router.min.js" &gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="controller/app.js" &gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="controller/home.js" &gt;&lt;/script&gt;
   &lt;/head&gt;
  &lt;body ng-app="app"&gt;
  &lt;header&gt;Jayesh Shelar&lt;/header&gt;
  &lt;div id="view" ui-view&gt; &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>]<a href="http://i.stack.imgur.com/v3hPI.png" rel="nofollow">1</a>]<a href="http://i.stack.imgur.com/v3hPI.png" rel="nofollow">1</a>HI</p>
  
  <p>I am getting error as "angular.min.js:103 XMLHttpRequest cannot load file Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource."</p>