blob: 724a87d2473664db7de5cfe9f4f3a8b8c02d66c8 [file] [log] [blame]
<?php
header("Content-Security-Policy: script-src 'self' 'unsafe-inline'; report-uri resources/save-report.php?test=eval-blocked-and-sends-report.php");
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
try {
eval("alert('FAIL')");
} catch (e) {
console.log(e);
console.log('PASS: eval() blocked.');
}
</script>
<script src="resources/go-to-echo-report.js"></script>
</body>
</html>