diff options
| author | cashmere <cashmere@autistici.org> | 2026-09-04 09:05:24 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-09-04 09:05:24 +0200 |
| commit | 4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch) | |
| tree | c296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /test/csp1.html | |
| download | relic-4f49b16079b27d7ce633619e4cddfdf2bffbc952.tar.gz | |
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> |
