Bug 160022
| Summary: | Cross-origin XMLHttpRequest doesn't work with redirect | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | saurabh mahajan <saby.mjn> |
| Component: | XML | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | igrigorik, youennf |
| Priority: | P2 | ||
| Version: | Safari 9 | ||
| Hardware: | All | ||
| OS: | All | ||
saurabh mahajan
I see https://bugs.webkit.org/show_bug.cgi?id=57600 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
http://stackoverflow.com/questions/33044293/safari-xhr-ajax-requests-w-cross-domain-redirect-fails
https://github.com/github/fetch/issues/237#issuecomment-229241133
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
youenn fablet
Would you be able to try with https://developer.apple.com/safari/technology-preview/?
saurabh mahajan
The technology preview does follow the redirect correctly. Thanks for recommending!
youenn fablet
(In reply to comment #2)
> The technology preview does follow the redirect correctly. Thanks for
> recommending!
Great!
I am closing this bug.
Should there be any further issue, we can reopen it.