File: csp.php

package info (click to toggle)
node-jquery 2.2.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,288 kB
  • sloc: php: 122; xml: 36; makefile: 9; sh: 2
file content (18 lines) | stat: -rw-r--r-- 523 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
	# This test page checks CSP only for browsers with "Content-Security-Policy" header support
	# i.e. no old WebKit or old Firefox
	header("Content-Security-Policy: default-src 'self'; report-uri csp-log.php");
?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>CSP Test Page</title>
	<script src="../../jquery.js"></script>
	<script src="csp.js"></script>
	<script src="getComputedSupport.js"></script>
</head>
<body>
	<p>CSP Test Page</p>
</body>
</html>