title: How to prevent/override authorization header in Safari?
body: <p>I have web page under <code>/</code> which requires Basic auth. Under <code>/api/*</code> REST API is served which does require JWT token passed in Authorization header. </p>
  
  <p>In Chrome it works fine: when I load web page it asks me for Basic credentials and then webpage performs AJAX requests to <code>/api/*</code> along with JWT in Authorization header.</p>
  
  <p>In Safari however, all AJAX requests are sent with Authorization header set to Basic credentials, and does not allow to set JWT in Authorization header...</p>
  
  <p>Is there any workaround for this situation?</p>
  
  <p>I am setting JWT for AJAX requests like this:</p>
  
  <pre><code>$.ajaxSetup({
    headers: {'Authorization': accessToken}
  });
  </code></pre>