diff options
Diffstat (limited to 'test/csp1.html')
| -rw-r--r-- | test/csp1.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/csp1.html b/test/csp1.html new file mode 100644 index 0000000..07b8d64 --- /dev/null +++ b/test/csp1.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> +<title>Title: Content Security Policy Test</title> +</head> +<body> +<h1>Content Security Policy Test</h1> + +<p>If the content-security-policy is ineffective, a pop-up dialog +box will appears. If there is no dialog box, then CSP is working +correctly.</p> + +<script>alert('Content Security Policy is ineffective');</script> +<img src='/' onerror='alert("CSP is ineffective")'> + +<p>As a double-check, open the Developer Console in your web-browser +and verify that two CSP violations were detected and blocked.</p> +</body> |
