title: 401 error when using a web service in sapui5
body: <p>I am implementing a web service into my sapui5 table by</p>
  
  <pre><code>var oModel = new sap.ui.model.odata.ODataModel("http://mywebservice.com/security.svc", false);
  sap.ui.getCore().setModel(oModel);
  </code></pre>
  
  <p>When I launch my code in a web browser and inspect element, I am getting the following errors:</p>
  
  <p>Failed to load resource: the server responded with a status of 401 (Unauthorized)</p>
  
  <p>XMLHttpRequest cannot load <a href="http://mywebservice.com/security.svc/" rel="nofollow">http://mywebservice.com/security.svc/</a>$metadata. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:53457" rel="nofollow">http://localhost:53457</a>' is therefore not allowed access. The response had HTTP status code 401.</p>
  
  <p>I also tested it in Fiddler and I get:</p>
  
  <p>HTTP/1.1 401 Unauthorized<br>
  Cache-Control: private<br>
  Server: Microsoft-IIS/8.0<br>
  Set-Cookie: ASP.NET; path=/; HttpOnly<br>
  X-AspNet-Version: 4.0.30319<br>
  WWW-Authenticate: Negotiate<br>
  WWW-Authenticate: NTLM<br>
  X-Powered-By: ASP.NET<br>
  Date: Tue, 09 Jun 2015 19:33:51 GMT<br>
  Content-Length: 0<br>
  Proxy-Support: Session-Based-Authentication  </p>
  
  <p>Any help on how to fix the 401 error would be greatly appreciated.</p>