blob: f508f830704ae3632965c112f30a9a41686c70dd [file] [log] [blame]
<meta http-equiv="Content-Security-Policy" content="connect-src 'self';">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test((test) => {
return fetch("resources/subresource-redirect.py", { mode : "no-cors" }).then(() => {
assert_not_reached("fetch should fail");
}, (e) => {
assert_equals(e.message, "Load failed");
});
}, "Ensure CSP happens before content blocker checks");
</script>