blob: 34513898cb003ae0b71a280f384ec99669602f34 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src='resources/multiple-iframe-test.js'></script>
<script>
var tests = [
['yes', 'script-src 127.0.0.1:*/security/#query=string', 'resources/script.js'],
['yes', 'script-src 127.0.0.1:*/security/?query=string', 'resources/script.js'],
['no', 'script-src 127.0.0.1:*/not-security/#query=string', 'resources/script.js'],
['no', 'script-src 127.0.0.1:*/not-security/?query=string', 'resources/script.js'],
['no', 'script-src 127.0.0.1:*/security', 'resources/script.js'],
['yes', 'script-src 127.0.0.1:*/security/', 'resources/script.js'],
['yes', 'script-src 127.0.0.1:*/security/contentSecurityPolicy/resources/script.js', 'resources/script.js'],
['no', 'script-src 127.0.0.1:*/security/contentSecurityPolicy/resources/script.js/', 'resources/script.js']
];
</script>
</head>
<body onload="test()">
<p>
Resources should be rejected unless they match a whitelisted path.
</p>