title: Safari 10.1: XMLHttpRequest with query parameters cannot load due to access control checks
body: <p>When trying a <code>CORS request</code> on <code>Safari 10.1</code>, on an URL which includes query parameters (e.g. <a href="https://example.com/api?v=1" rel="noreferrer">https://example.com/api?v=1</a>), Safari says</p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load due to access control checks</p>
  </blockquote>
  
  <p>Chrome/Firefox works fine.</p>
  
  <p>On requests from the page without the <code>?v=1</code>, Safari works fine too.</p>
  
  <p>I tried changing the server response header from</p>
  
  <pre><code>Access-Control-Allow-Origin: https://example.com
  </code></pre>
  
  <p>to</p>
  
  <pre><code>Access-Control-Allow-Origin: https://example.com/api?v=1
  </code></pre>
  
  <p>but that breaks Chrome.</p>
  
  <p>Any suggestions?</p>