title: Can AJAX submit credentials for Basic Authentication?
body: <p>This might be a little bit of a stretch, but let's just assume that we need it to work this way:</p>
  
  <ul>
  <li>I have an index.html file in the web root of a server. The javascript in that file needs to make an ajax request to /secure/ajax.php</li>
  <li>Everything in the /secure/ directory is protected using Basic Authentication</li>
  <li>I don't want to bother the user with logging in to the /secure/ section</li>
  </ul>
  
  <p>Can I submit credentials for basic authentication with an AJAX request?</p>