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

Side by Side Diff: LayoutTests/http/tests/eventsource/eventsource-cors-with-credentials-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: EventSource cannot load http://localhost:8000/eventsource/resourc es/es-cors-credentials.php?count=1. Wildcards cannot be used in the 'Access-Cont rol-Allow-Origin' header when the credentials flag is true. Origin 'http://127.0 .0.1:8000' is therefore not allowed access. 1 CONSOLE ERROR: EventSource cannot load http://localhost:8000/eventsource/resourc es/es-cors-credentials.php?count=1. A wildcard '*' cannot be used in the 'Access -Control-Allow-Origin' header when the credentials flag is true. Origin 'http:// 127.0.0.1:8000' is therefore not allowed access.
2 CONSOLE ERROR: EventSource cannot load http://localhost:8000/eventsource/resourc es/es-cors-credentials.php?count=2. Wildcards cannot be used in the 'Access-Cont rol-Allow-Origin' header when the credentials flag is true. Origin 'http://127.0 .0.1:8000' is therefore not allowed access. 2 CONSOLE ERROR: EventSource cannot load http://localhost:8000/eventsource/resourc es/es-cors-credentials.php?count=2. A wildcard '*' cannot be used in the 'Access -Control-Allow-Origin' header when the credentials flag is true. Origin 'http:// 127.0.0.1:8000' is therefore not allowed access.
3 CONSOLE ERROR: EventSource cannot load http://localhost:8000/eventsource/resourc es/es-cors-credentials.php?count=3. Credentials flag is 'true', but the 'Access- Control-Allow-Credentials' header is ''. It must be 'true' to allow credentials. 3 CONSOLE ERROR: EventSource cannot load http://localhost:8000/eventsource/resourc es/es-cors-credentials.php?count=3. Credentials flag is 'true', but the 'Access- Control-Allow-Credentials' header is ''. It must be 'true' to allow credentials.
4 Test that EventSource cross-origin requests with credentials fail until the corr ect CORS headers are sent. Should print a series of PASS messages followed by DO NE. 4 Test that EventSource cross-origin requests with credentials fail until the corr ect CORS headers are sent. Should print a series of PASS messages followed by DO NE.
5 5
6 PASS: got error event and readyState is CLOSED 6 PASS: got error event and readyState is CLOSED
7 PASS: got error event and readyState is CLOSED 7 PASS: got error event and readyState is CLOSED
8 PASS: got error event and readyState is CLOSED 8 PASS: got error event and readyState is CLOSED
9 PASS: got cross-origin message event with data "DATA1" and lastEventId "77" 9 PASS: got cross-origin message event with data "DATA1" and lastEventId "77"
10 PASS: got cross-origin message event with data "DATA2" 10 PASS: got cross-origin message event with data "DATA2"
11 DONE 11 DONE
12 12
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698