Fail | basic request header | Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=x-print'.Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=x-print'.
at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:22:12)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:18:1 Asserts runNo asserts ran |
Fail | Simple request headers need not be in allow-headers | Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=x-print,'.Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=x-print,'.
at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:36:12)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:28:1 Asserts runNo asserts ran |
Pass | Unspecified request headers are disallowed | Asserts runPass | assert_throws_dom("NetworkError", function "function() { client.send(null) }")
at Test.<anonymous> ( /cors/request-headers.htm:51:5) |
|
Fail | Strange allowheaders (case insensitive) | Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=,y-lol,x-PriNT,%20,,,Y-PRINT'.Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=,y-lol,x-PriNT,%20,,,Y-PRINT'.
at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:59:12)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:54:1 Asserts runNo asserts ran |
Pass | INVALID_STATE_ERR on setRequestHeader before open() | Asserts runPass | assert_throws_dom("INVALID_STATE_ERR", function "function() { client.setRequestHeader('x-print', 'unicorn') }")
at Test.<anonymous> ( /cors/request-headers.htm:68:5) |
|
Fail | INVALID_STATE_ERR on setRequestHeader after send() | Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=,y-lol,x-PriNT,%20,,,Y-PRINT'.Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www1.xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/resources/cors-makeheader.py?headers=,y-lol,x-PriNT,%20,,,Y-PRINT'.
at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:75:12)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/cors/request-headers.htm:72:1 Asserts runNo asserts ran |