blob: 326a0fd0edf7e0c2dbe356875e8915d222e6dd22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<!DOCTYPE HTML>
<html>
<head>
<title>Generates a CSP violation report and sends it to a same-origin endpoint</title>
</head>
<body>
<script>
const img = document.createElement('img');
img.src = "/reporting/resources/fail.png";
document.body.appendChild(img);
// Post back to the main frame that the report should have been queued.
top.postMessage("done", "*");
</script>
</body>
</html>
|