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

Side by Side Diff: LayoutTests/http/tests/security/isolatedWorld/cross-origin-xhr-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 ERROR: XMLHttpRequest cannot load http://localhost:8000/security/isolate dWorld/resources/cross-origin-xhr.txt. No 'Access-Control-Allow-Origin' header i s present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 1 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/security/isolate dWorld/resources/cross-origin-xhr.txt. No 'Access-Control-Allow-Origin' header i s present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to Th e Fetch API in 'no-cors' mode.
2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/security/isolate dWorld/resources/cross-origin-xhr.txt. No 'Access-Control-Allow-Origin' header i s present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/security/isolate dWorld/resources/cross-origin-xhr.txt. No 'Access-Control-Allow-Origin' header i s present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to Th e Fetch API in 'no-cors' mode.
3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/security/isolate dWorld/resources/cross-origin-xhr.txt. No 'Access-Control-Allow-Origin' header i s present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/security/isolate dWorld/resources/cross-origin-xhr.txt. No 'Access-Control-Allow-Origin' header i s present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to Th e Fetch API in 'no-cors' mode.
4 Tests that isolated worlds can have XHRs run in a different origin. 4 Tests that isolated worlds can have XHRs run in a different origin.
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 XHR from main world 9 XHR from main world
10 XHR completed with status 0 10 XHR completed with status 0
11 XHR from isolated world with unchanged security origin 11 XHR from isolated world with unchanged security origin
12 XHR completed with status 0 12 XHR completed with status 0
13 XHR from isolated world with same security origin as XHR target 13 XHR from isolated world with same security origin as XHR target
14 XHR completed with status 200 14 XHR completed with status 200
15 XHR from isolated world with security origin that is whitelisted for XHR target 15 XHR from isolated world with security origin that is whitelisted for XHR target
16 XHR completed with status 200 16 XHR completed with status 200
17 XHR from main world is not affected by the isolated world origin or whitelist 17 XHR from main world is not affected by the isolated world origin or whitelist
18 XHR completed with status 0 18 XHR completed with status 0
19 PASS successfullyParsed is true 19 PASS successfullyParsed is true
20 20
21 TEST COMPLETE 21 TEST COMPLETE
22 22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698