title: How can I pass windows authentication to webservice using jQuery?
body: <p>I'm using jQuery to call a .Net web service like this:</p>
  
  <pre><code>var service_url = "https://example.com/myservice.asmx"
  $.ajax({
      type: "GET",
      url: service_url,
      dataType: "xml",
      data: "ParamId=" + FormId.value,
      processData: false,
      error: function(XMLHttpRequest, textStatus, errorThrown) { ajaxError(XMLHttpRequest, textStatus, errorThrown); },
      success: function(xml) { DoSomething(xml); }
  });
  </code></pre>
  
  <p>Now I want to wrap "<a href="https://example.com/myservice.asmx" rel="noreferrer">https://example.com/myservice.asmx</a>" in Windows Authentication.  How can I pass credentials to the service using jQuery/javascript?</p>
  
  <p>Ideally I'd like to use the current user's credentials but if needed I can use 1 master credential for all service calls.  </p>