Fix problems with cross-origin redirects
[WebKit-https.git] / LayoutTests / http / tests / xmlhttprequest / access-control-and-redirects-expected.txt
1 Tests that redirects between origins are never allowed, even when access control is involved.
2
3 Per the spec, these test cases should be allowed, but cross-origin redirects are currently unsupported in WebCore.
4
5 Testing /resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow.cgi (sync)
6 Expecting success: false
7 PASS: Error: NETWORK_ERR: XMLHttpRequest Exception 101
8 Testing /resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow.cgi(async)
9 Expecting success: true
10 PASS: PASS: Cross-domain access allowed.
11
12 Testing http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/xmlhttprequest/resources/access-control-basic-allow.cgi (sync)
13 Expecting success: false
14 PASS: Error: NETWORK_ERR: XMLHttpRequest Exception 101
15 Testing http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/xmlhttprequest/resources/access-control-basic-allow.cgi(async)
16 Expecting success: false
17 PASS: 0
18 Testing http://localhost:8000/resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow.cgi (sync)
19 Expecting success: false
20 PASS: Error: NETWORK_ERR: XMLHttpRequest Exception 101
21 Testing http://localhost:8000/resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow.cgi(async)
22 Expecting success: false
23 PASS: 0
24