Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-same-origin-expected.txt

Issue 109773002: Improve precision of error messages from failed CORS checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/access-control-basic-allow-star.cgi. Wildcards cannot be used in the 'A ccess-Control-Allow-Origin' header when the credentials flag is true. Origin 'ht tp://127.0.0.1:8000' is therefore not allowed access. 1 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/access-control-basic-allow-star.cgi. A wildcard '*' cannot be used in t he 'Access-Control-Allow-Origin' header when the credentials flag is true. Origi n 'http://127.0.0.1:8000' is therefore not allowed access.
2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/access-control-basic-allow-no-credentials.cgi. Credentials flag is 'tru e', but the 'Access-Control-Allow-Credentials' header is ''. It must be 'true' t o allow credentials. 2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/access-control-basic-allow-no-credentials.cgi. Credentials flag is 'tru e', but the 'Access-Control-Allow-Credentials' header is ''. It must be 'true' t o allow credentials.
3 Tests that asynchronous XMLHttpRequests handle redirects according to the CORS s tandard. 3 Tests that asynchronous XMLHttpRequests handle redirects according to the CORS s tandard.
4 4
5 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow-star.cgi without credentials 5 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow-star.cgi without credentials
6 Expecting success: true 6 Expecting success: true
7 PASS: PASS: Cross-domain access allowed. 7 PASS: PASS: Cross-domain access allowed.
8 8
9 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow-star.cgi with credentials 9 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow-star.cgi with credentials
10 Expecting success: false 10 Expecting success: false
11 PASS: 0 11 PASS: 0
12 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow.cgi without credentials 12 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow.cgi without credentials
13 Expecting success: true 13 Expecting success: true
14 PASS: PASS: Cross-domain access allowed. 14 PASS: PASS: Cross-domain access allowed.
15 15
16 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow.cgi with credentials 16 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow.cgi with credentials
17 Expecting success: true 17 Expecting success: true
18 PASS: PASS: Cross-domain access allowed. 18 PASS: PASS: Cross-domain access allowed.
19 19
20 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow-no-credentials.cgi without credentials 20 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow-no-credentials.cgi without credentials
21 Expecting success: true 21 Expecting success: true
22 PASS: PASS: Cross-domain access allowed. 22 PASS: PASS: Cross-domain access allowed.
23 23
24 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow-no-credentials.cgi with credentials 24 Testing resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resource s/access-control-basic-allow-no-credentials.cgi with credentials
25 Expecting success: false 25 Expecting success: false
26 PASS: 0 26 PASS: 0
27 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698