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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-tripmine-expected.txt

Issue 1300083002: Add suggestion to use "no-cors" with Fetch fails CORS check. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch CORS error expectation files to include message about Fetch CORS. Created 5 years, 4 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 WARNING: Synchronous XMLHttpRequest on the main thread is deprecated bec ause of its detrimental effects to the end user's experience. For more help, che ck http://xhr.spec.whatwg.org/. 1 CONSOLE WARNING: Synchronous XMLHttpRequest on the main thread is deprecated bec ause of its detrimental effects to the end user's experience. For more help, che ck http://xhr.spec.whatwg.org/.
2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternativ ely, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternativ ely, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
4 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 4 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternativ ely, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
5 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 5 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternativ ely, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
6 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 6 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternativ ely, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
7 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 7 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternativ ely, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
8 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. Response to preflight request doesn't pass access control check: No 'Acc ess-Control-Allow-Origin' header is present on the requested resource. Origin 'h ttp://127.0.0.1:8000' is therefore not allowed access. 8 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. Response to preflight request doesn't pass access control check: No 'Acc ess-Control-Allow-Origin' header is present on the requested resource. Origin 'h ttp://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you wan t an opaque response, switch to The Fetch API in 'no-cors' mode.
9 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 9 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternativ ely, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
10 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 10 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. No 'Access-Control-Allow-Origin' header is present on the requested reso urce. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternativ ely, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
11 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. Response to preflight request doesn't pass access control check: No 'Acc ess-Control-Allow-Origin' header is present on the requested resource. Origin 'h ttp://127.0.0.1:8000' is therefore not allowed access. 11 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/resources/tripmi ne.php. Response to preflight request doesn't pass access control check: No 'Acc ess-Control-Allow-Origin' header is present on the requested resource. Origin 'h ttp://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you wan t an opaque response, switch to The Fetch API in 'no-cors' mode.
12 Test that a cross-origin redirect does not result in a non-simple request being sent to the target. 12 Test that a cross-origin redirect does not result in a non-simple request being sent to the target.
13 13
14 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 14 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
15 15
16 16
17 Asynchronous XMLHttpRequest 307 POST redirect: 17 Asynchronous XMLHttpRequest 307 POST redirect:
18 PASS tripmineStatus is "" 18 PASS tripmineStatus is ""
19 Asynchronous XMLHttpRequest 307 GET redirect: 19 Asynchronous XMLHttpRequest 307 GET redirect:
20 PASS tripmineStatus is "" 20 PASS tripmineStatus is ""
21 Asynchronous XMLHttpRequest 303 POST redirect: 21 Asynchronous XMLHttpRequest 303 POST redirect:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 Synchronous XMLHttpRequest 301 GET redirect: 61 Synchronous XMLHttpRequest 301 GET redirect:
62 PASS testSyncReq.send('data') threw exception NetworkError: Failed to execute 's end' on 'XMLHttpRequest': Failed to load 'http://127.0.0.1:8000/resources/redire ct.php?code=301&url=http://localhost:8000/resources/tripmine.php'.. 62 PASS testSyncReq.send('data') threw exception NetworkError: Failed to execute 's end' on 'XMLHttpRequest': Failed to load 'http://127.0.0.1:8000/resources/redire ct.php?code=301&url=http://localhost:8000/resources/tripmine.php'..
63 PASS tripmineStatus is "" 63 PASS tripmineStatus is ""
64 Synchronous XMLHttpRequest 301 DELETE redirect: 64 Synchronous XMLHttpRequest 301 DELETE redirect:
65 PASS testSyncReq.send('data') threw exception NetworkError: Failed to execute 's end' on 'XMLHttpRequest': Failed to load 'http://127.0.0.1:8000/resources/redire ct.php?code=301&url=http://localhost:8000/resources/tripmine.php'.. 65 PASS testSyncReq.send('data') threw exception NetworkError: Failed to execute 's end' on 'XMLHttpRequest': Failed to load 'http://127.0.0.1:8000/resources/redire ct.php?code=301&url=http://localhost:8000/resources/tripmine.php'..
66 PASS tripmineStatus is "" 66 PASS tripmineStatus is ""
67 PASS successfullyParsed is true 67 PASS successfullyParsed is true
68 68
69 TEST COMPLETE 69 TEST COMPLETE
70 70
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698