1 if (self.importScripts)
2 importScripts("/js-test-resources/js-test.js");
4 description("Test that basic EventSource cross-origin requests fail on blocked CSP redirect.");
6 self.jsTestIsAsync = true;
10 shouldNotThrow("es = new EventSource(\"http://127.0.0.1:8000/resources/redirect.php?code=307&cors_allow_origin=*&url=http://127.0.0.1:8080/resources/redirect.php\")");
11 es.onerror = function() {
12 shouldBe("es.readyState", "EventSource.CLOSED");