OLD | NEW |
1 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/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. | 1 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/eventsource/resourc
es/es-cors-credentials.php?count=1. Received response but it doesn't pass the ac
cess control check: A wildcard '*' cannot be used in the 'Access-Control-Allow-O
rigin' 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://127.0.0.1:8080/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. | 2 CONSOLE ERROR: EventSource cannot load http://127.0.0.1:8080/eventsource/resourc
es/es-cors-credentials.php?count=2. Received response but it doesn't pass the ac
cess control check: A wildcard '*' cannot be used in the 'Access-Control-Allow-O
rigin' 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://127.0.0.1:8080/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://127.0.0.1:8080/eventsource/resourc
es/es-cors-credentials.php?count=3. Received response but it doesn't pass the ac
cess control check: Credentials flag is 'true', but the 'Access-Control-Allow-Cr
edentials' header is ''. It must be 'true' to allow credentials. |
4 [Worker] Test that EventSource cross-origin requests with credentials fail until
the correct CORS headers are sent. | 4 [Worker] Test that EventSource cross-origin requests with credentials fail until
the correct CORS headers are sent. |
5 | 5 |
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
7 | 7 |
8 | 8 |
9 Starting worker: ../script-tests/eventsource-cors-with-credentials.js | 9 Starting worker: ../script-tests/eventsource-cors-with-credentials.js |
10 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-credentials.php?count=1", {'withCredentials': true}) did not throw excep
tion. | 10 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-credentials.php?count=1", {'withCredentials': true}) did not throw excep
tion. |
11 PASS [Worker] es.withCredentials is true | 11 PASS [Worker] es.withCredentials is true |
12 PASS [Worker] count != 4 && count != 5 is true | 12 PASS [Worker] count != 4 && count != 5 is true |
13 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-credentials.php?count=2", {'withCredentials': true}) did not throw excep
tion. | 13 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-credentials.php?count=2", {'withCredentials': true}) did not throw excep
tion. |
14 PASS [Worker] es.withCredentials is true | 14 PASS [Worker] es.withCredentials is true |
15 PASS [Worker] count != 4 && count != 5 is true | 15 PASS [Worker] count != 4 && count != 5 is true |
16 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-credentials.php?count=3", {'withCredentials': true}) did not throw excep
tion. | 16 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-credentials.php?count=3", {'withCredentials': true}) did not throw excep
tion. |
17 PASS [Worker] es.withCredentials is true | 17 PASS [Worker] es.withCredentials is true |
18 PASS [Worker] count != 4 && count != 5 is true | 18 PASS [Worker] count != 4 && count != 5 is true |
19 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-credentials.php?count=4", {'withCredentials': true}) did not throw excep
tion. | 19 PASS [Worker] es = new EventSource("http://127.0.0.1:8080/eventsource/resources/
es-cors-credentials.php?count=4", {'withCredentials': true}) did not throw excep
tion. |
20 PASS [Worker] es.withCredentials is true | 20 PASS [Worker] es.withCredentials is true |
21 PASS [Worker] evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true | 21 PASS [Worker] evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true |
22 PASS [Worker] evt.data is "DATA1" | 22 PASS [Worker] evt.data is "DATA1" |
23 PASS [Worker] evt.lastEventId is "77" | 23 PASS [Worker] evt.lastEventId is "77" |
24 PASS [Worker] count is 5 | 24 PASS [Worker] count is 5 |
25 PASS [Worker] evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true | 25 PASS [Worker] evt.origin.indexOf('http://127.0.0.1:8080') === 0 is true |
26 PASS [Worker] count is 5 | 26 PASS [Worker] count is 5 |
27 PASS [Worker] evt.data is "DATA2" | 27 PASS [Worker] evt.data is "DATA2" |
28 PASS successfullyParsed is true | 28 PASS successfullyParsed is true |
29 | 29 |
30 TEST COMPLETE | 30 TEST COMPLETE |
31 | 31 |
OLD | NEW |