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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-https-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/xmlhttprequest/r esources/get.txt?sync. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed acc ess. 2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt?sync. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed acc ess. Alternatively, if you want an opaque response, switch to The Fetch API in ' no-cors' mode.
3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt?async. No 'Access-Control-Allow-Origin' header is present on th e requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed ac cess. 3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt?async. No 'Access-Control-Allow-Origin' header is present on th e requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed ac cess. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-cors' mode.
4 Tests that origin whitelisting for https does not match http URLs. 4 Tests that origin whitelisting for https does not match http URLs.
5 5
6 Testing: http://localhost:8000/xmlhttprequest/resources/get.txt (sync) 6 Testing: http://localhost:8000/xmlhttprequest/resources/get.txt (sync)
7 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt?sync'. 7 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt?sync'.
8 Testing: http://localhost:8000/xmlhttprequest/resources/get.txt (async) 8 Testing: http://localhost:8000/xmlhttprequest/resources/get.txt (async)
9 PASS: 0 9 PASS: 0
10 10
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698