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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-removal-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. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 2 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-co rs' mode.
3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 3 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-co rs' mode.
4 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 4 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-co rs' mode.
5 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 5 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-co rs' mode.
6 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 6 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-co rs' mode.
7 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 7 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-co rs' mode.
8 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 8 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-co rs' mode.
9 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. 9 CONSOLE ERROR: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/r esources/get.txt. No 'Access-Control-Allow-Origin' header is present on the requ ested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. Alternatively, if you want an opaque response, switch to The Fetch API in 'no-co rs' mode.
10 Tests the behavior of whitelisting origins and removing them later. 10 Tests the behavior of whitelisting origins and removing them later.
11 11
12 Testing: source origin: http://127.0.0.1:8000 destination origin: http:localhost 12 Testing: source origin: http://127.0.0.1:8000 destination origin: http:localhost
13 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWO RK_ERR) 13 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWO RK_ERR)
14 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt'. 14 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt'.
15 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting PASS) 15 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting PASS)
16 PASS: PASS 16 PASS: PASS
17 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWO RK_ERR) 17 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWO RK_ERR)
18 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt'. 18 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt'.
19 19
(...skipping 19 matching lines...) Expand all
39 Testing: source origin: http://127.0.0.1:8000 destination origin: http: allowing subdomains 39 Testing: source origin: http://127.0.0.1:8000 destination origin: http: allowing subdomains
40 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWO RK_ERR) 40 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWO RK_ERR)
41 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt'. 41 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt'.
42 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting PASS) 42 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting PASS)
43 PASS: PASS 43 PASS: PASS
44 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWO RK_ERR) 44 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWO RK_ERR)
45 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt'. 45 PASS: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8000/xmlhttprequest/resources/get.txt'.
46 46
47 47
48 48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698