blob: 2685a73253cc8f45fc4881d210aa809739a461de [file] [log] [blame]
<?php
header("Content-Security-Policy: img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php");
?>
<!-- webkit-test-runner [ useEphemeralSession=true ] -->
<!DOCTYPE html>
<html>
<body>
<script>
var xhr = new XMLHttpRequest();
xhr.open("GET", "/cookies/resources/setCookies.cgi", false);
xhr.setRequestHeader("SET-COOKIE", "hello=world;path=/");
xhr.send(null);
</script>
<!-- This image will generate a CSP violation report. -->
<img src="/security/resources/abe.png">
<script src="resources/go-to-echo-report.js"></script>
</body>
</html>