<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Cross-origin XMLHttpRequest doesn't work with redirect"
   href="https://bugs.webkit.org/show_bug.cgi?id=160022">160022</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cross-origin XMLHttpRequest doesn't work with redirect
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>XML
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>saby.mjn&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I see <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - cross-origin XMLHttpRequest doesn't work with redirect"
   href="show_bug.cgi?id=57600">https://bugs.webkit.org/show_bug.cgi?id=57600</a> that is marked as fixed but I can still reproduce the issue with Safari 9.

Steps to reproduce the problem
Make a XHR request to a server (domain A) using Safari
Have the server response w/ 302 to a different domain B
Note that the redirect is not followed - I verified using Charle's proxy.

If I use a different browser (e.g. Chrome) the redirect is followed.

If the redirect is to a different URL on the same domain A, the redirect is followed.

I found other instances of people running into this issue
<a href="http://stackoverflow.com/questions/33044293/safari-xhr-ajax-requests-w-cross-domain-redirect-fails">http://stackoverflow.com/questions/33044293/safari-xhr-ajax-requests-w-cross-domain-redirect-fails</a>
<a href="https://github.com/github/fetch/issues/237#issuecomment-229241133">https://github.com/github/fetch/issues/237#issuecomment-229241133</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>