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

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

Issue 1196423003: Improve console log message for CORS failure (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 months 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. 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. 1 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/access-control-basic-allow-star.cgi. Received response but it doesn't p ass the access control check: A wildcard '*' cannot be used in the 'Access-Contr ol-Allow-Origin' header when the credentials flag is true. Origin '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. Received response but it doesn't pass the access control check: Credentials flag is 'true', but the 'Acc ess-Control-Allow-Credentials' header is ''. It must be 'true' to allow credenti als.
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