title: Why I get Internet Explorer enhanced security error message in Chrome if I call VSO API from Angularjs SPA?
body: <p>I have a SPA implemented in Angularjs - Typescript calling VSO API and providing authentication data you can find below:</p>
  
  <pre class="lang-js prettyprint-override"><code>((): void =&gt; {
      "use strict";
  
      angular
          .module("app")
          .config(config);
  
      config.$inject = [
          "$httpProvider"
      ];
  
      function config(
          $httpProvider: ng.IHttpProvider
      ) {
  
          $httpProvider.defaults.headers.common['Authorization'] = "Bearer username:password";
  
      }
  });
  </code></pre>
  
  <p>I see the Network tab of the browser that this call will be redirected to here:</p>
  
  <pre><code>https://app.vssps.visualstudio.com/_signin?realm=dldxdm.visualstudio.com&amp;reply_to...
  </code></pre>
  
  <p>And a following request.</p>
  
  <p>The console does not show any authentication error, but there is no result of my request (GET) but it should be! Instead of the result I get the message you can see in the screenshot. It is <em>Microsoft Internet Explorer's Enhanced Security Configuration is currently enabled on your environment. This enhanced level of security prevents our web integration experiences from displaying or performing correctly. To continue with your operation please disable this configuration or contact your administrator.</em> But the query executed in Chrome. Why an IE error message is here?</p>
  
  <p><a href="https://i.stack.imgur.com/A3m1D.png" rel="noreferrer"><img src="https://i.stack.imgur.com/A3m1D.png" alt="enter image description here"></a></p>
  
  <p>In the browser I logged in to VSO to the project, and if I copy the url and paste into another tab and execute it I'll get the proper result I'm looking for.</p>
  
  <p><strong>Questions</strong>:</p>
  
  <ul>
  <li>why there is no result for my query executed by Angular app?</li>
  <li>how should I authenticate for VSO? I cannot set up a token because it runs on localhost currently.</li>
  </ul>
  
  <p>I googled for the IE error message but there is no answer. The how to disable the enhanced security of IE I have found Windows Server answers. I don't think they are related to my issue.</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>Ok, I have an <a href="http://www.bfcamara.com/post/99409744598/consuming-vs-online-rest-api-using-a-service" rel="noreferrer">article</a> about what is happening. Next step, implementation.</p>