blob: eaef1a7a590fc9130b6415e52abd1b2d9fd6289c [file] [log] [blame]
<p>Test that a script element with a crossorigin attribute loads same-origin scripts correctly when there's no access control headers in the response.</p>
<pre>FAIL</pre>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function loaded() {
document.querySelector("pre").innerHTML = "PASS";
if (window.testRunner)
testRunner.notifyDone();
}
</script>
<!-- This script should load -->
<script crossorigin="anonymous" src="resources/localScript.js" onload="loaded()"></script>