Fail | CORS request with setRequestHeader auth to URL accepting Authorization header | assert_true: responseText should contain the right user and password expected true got false at errorFired (https://www1.wpt.live/xhr/send-authentication-cors-setrequestheader-no-cred.htm:39:7)
at Test.<anonymous> (https://www1.wpt.live/xhr/send-authentication-cors-setrequestheader-no-cred.htm:29:11)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at XMLHttpRequest.<anonymous> (https://www1.wpt.live/resources/testharness.js:2689:35)
at Test.<anonymous> (https://www1.wpt.live/xhr/send-authentication-cors-setrequestheader-no-cred.htm:34:16) Asserts runFail | assert_true(false, "responseText should contain the right user and password")
at errorFired ( /xhr/send-authentication-cors-setrequestheader-no-cred.htm:39:7) |
|
Fail | CORS request with setRequestHeader auth to URL NOT accepting Authorization header | assert_equals: expected "" but got "{\"error\": {\"code\": 500, \"message\": \"Internal server error loading https://www1.wpt.live:443/xhr/resources/auth8/corsenabled-no-authorize.py:\\n Traceback (most recent call last):\\n File \\\"/root/wpt/tools/wptserve/wptserve/handlers.py\\\", line 373, in __call__\\n rv = self.func(request, response)\\n\\n File \\\"/root/wpt/xhr/resources/auth8/corsenabled-no-authorize.py\\\", line 10, in main\\n response.headers.set(b'Access-Control-Allow-Origin', request.headers.get(b\\\"origin\\\"))\\n\\n File \\\"/root/wpt/tools/wptserve/wptserve/response.py\\\", line 363, in set\\n value = _maybe_encode(value)\\n\\n File \\\"/root/wpt/tools/wptserve/wptserve/response.py\\\", line 347, in _maybe_encode\\n return isomorphic_encode(s)\\n\\n File \\\"/root/wpt/tools/wptserve/wptserve/utils.py\\\", line 42, in isomorphic_encode\\n raise TypeError(\\\"Unexpected value (expecting string-like): %r\\\" % s)\\n TypeError: Unexpected value (expecting string-like): None\\n\"}}" at https://www1.wpt.live/xhr/send-authentication-cors-setrequestheader-no-cred.htm:50:7
at Test.<anonymous> (https://www1.wpt.live/xhr/send-authentication-cors-setrequestheader-no-cred.htm:29:11)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at XMLHttpRequest.<anonymous> (https://www1.wpt.live/resources/testharness.js:2689:35)
at Test.<anonymous> (https://www1.wpt.live/xhr/send-authentication-cors-setrequestheader-no-cred.htm:34:16) Asserts runFail | assert_equals("{\"error\": {\"code\": 500, \"message\": \"Internal server error loading https://www1.wpt.live:443/xhr/resources/auth8/corsenabled-no-authorize.py:\\n Traceback (most recent call last):\\n File \\\"/root/wpt/tools/wptserve/wptserve/handlers.py\\\", line 373, in __call__\\n rv = self.func(request, response)\\n\\n File \\\"/root/wpt/xhr/resources/auth8/corsenabled-no-authorize.py\\\", line 10, in main\\n response.headers.set(b'Access-Control-Allow-Origin', request.headers.get(b\\\"origin\\\"))\\n\\n File \\\"/root/wpt/tools/wptserve/wptserve/response.py\\\", line 363, in set\\n value = _maybe_encode(value)\\n\\n File \\\"/root/wpt/tools/wptserve/wptserve/response.py\\\", line 347, in _maybe_encode\\n return isomorphic_encode(s)\\n\\n File \\\"/root/wpt/tools/wptserve/wptserve/utils.py\\\", line 42, in isomorphic_encode\\n raise TypeError(\\\"Unexpected value (expecting string-like): %r\\\" % s)\\n TypeError: Unexpected value (expecting string-like): None\\n\"}}", "")
at /xhr/send-authentication-cors-setrequestheader-no-cred.htm:50:7 |
|