title: Access is Denied on IE11 in AngularJS
body: <p>Every development pipeline has 2 parts. FIRST to work hard and develop the application. SECOND to work harder and make it compatible with the great arrogant IE.</p>
  
  <p>We have an <code>AngularJS (v1.3.13)</code> application without any server side code developed in <code>Webstorm</code>. We are making <code>REST</code> calls to service. Our application works fine on Chrome and Firefox without any Console errors. However when we try to open the page in IE11 or IE9 (not tried IE10), our page doesn't load. Console suggests we have 2 errors. One of them is <code>Access is Denied</code> on </p>
  
  <pre><code>xhr.open(method, url, true);
  </code></pre>
  
  <p>in <code>angular.js</code>.</p>
  
  <p>There are number of posts on internet and none seems to be working. This is what I have tried.</p>
  
  <ol>
  <li>Hosting app in <code>IIS</code> with changed Handler Mappings to support Cross Domain calls on an Application pool of <code>.Net v4.0</code> (as suggested by a Senior)</li>
  <li>Tried to disable to cache for HTTP requests.</li>
  <li>Adding Domain in trusted site category and also adding locahost/IP to local intranet.</li>
  <li>Changing request type to <code>JSONP</code> and trying to add <code>Access-Control-Allow-Origin</code> (with value of <code>*</code>) to headers.</li>
  <li>Changing IE settings to allow Cross Domain calls.</li>
  </ol>
  
  <p>Error is still chasing us. Even my colleagues have tried the same on their machines ending up with similar blow. Is there anyone to suggest me something on this.</p>
  
  <p>It may be CORS and I may need to go for xdr (XDomainRequest) but not sure how to use it as error is in angular.js. I am certainly no expert on this so please suggest.</p>
  
  <p>Screen shot of the error:
  <img src="https://i.stack.imgur.com/x86sa.png" alt="enter image description here"></p>
  
  <p>IE shows another error: 
  <code>[$injector:nomod] Module 'ngLocale' is not available! 
  You either misspelled the module name or forgot to load it. 
  If registering a module ensure that you specify the dependencies 
   as the second argument.
  http://errors.angularjs.org/1.2.16/$injector/nomod?p0=ngLocale</code> which I am ignoring for now.</p>
  
  <p>Please suggest me something on this.
  Thanks.</p>