blob: 4ccdd5b21ef163061108337d52126b5dd8a5d119 [file] [log] [blame]
<!DOCTYPE html>
<head>
<title>SRI on cross origin CORS disabled script</title>
</head>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
var result = '';
var scriptLoaded = function() {
assert_unreached('Script ran.');
done();
};
var scriptError = function() {
assert_equals(result, '', 'Script did not run.');
done();
};
</script>
<script crossorigin integrity="sha256-mk_DwEwGGoyrh4sgi9t0nYTO1Lrft3w6vzaNuMaZrtQ=" src="http://localhost:8000/security/resources/cors-script.php?cors=false&value=ran" onload="scriptLoaded();" onerror="scriptError();"></script>
</body>
</html>