[Webkit-unassigned] [Bug 125455] New: Synchronous CORS XHR fails when 302 redirect to same domain

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 9 09:40:48 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=125455

           Summary: Synchronous CORS XHR fails when 302 redirect to same
                    domain
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://jsbin.com/inIjoCAm/edit?js,console
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jcready at gmail.com


Steps to reproduce the problem:
1. Create new XMLHttpRequest()
2. XHR.open() a synchronous GET request to CORS enabled URL which performs a 302 redirect to another location on same domain.
3. XHR.send(null)

What is the expected behavior?
The browser performs the synchronous CORS GET request to URL. The browser interprets the 302 HTTP status and performs an secondary CORS GET request to different location on same domain as initial URL.

What went wrong?
Safari throws an error: "XMLHttpRequest Exception 101: A network error occurred in synchronous requests."

User Agent?
Browser Version: 7.0 Safari/537.71
OS Version: OS X 10.9.0
Flash Version: Shockwave Flash 11.9 r900

Example:
var url = 'http://api.soundcloud.com/resolve.json?url=http://soundcloud.com/matas/hobnotropic&client_id=b45b1aa10f1ac2941910a7f0d10f8e28';
var xhr = new XMLHttpRequest();
xhr.open('GET', url, false);
xhr.send(null);

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list