summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/reporting/support/generate-csp-report.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/reporting/support/generate-csp-report.html')
-rw-r--r--testing/web-platform/tests/content-security-policy/reporting/support/generate-csp-report.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/content-security-policy/reporting/support/generate-csp-report.html b/testing/web-platform/tests/content-security-policy/reporting/support/generate-csp-report.html
new file mode 100644
index 0000000000..c2024c0a1b
--- /dev/null
+++ b/testing/web-platform/tests/content-security-policy/reporting/support/generate-csp-report.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<body>
+ <script nonce='abc'>
+ top.postMessage('cookie set', '*');
+ </script>
+ <script>
+ // This script block will trigger a violation report.
+ alert('FAIL');
+ </script>
+</body>
+</html>