blob: 013d7fdf41c2fd2cb39f17368ba2e5cf0bbac518 [file] [log] [blame]
#!/usr/bin/env python3
import sys
sys.stdout.write(
'Content-Security-Policy-Report-Only: script-src \'sha256-AJqUvsXuHfMNXALcBPVqeiKkFk8OLvn3U7ksHP/QQ90=\' \'nonce-dump-as-text\'\r\n'
'Content-Type: text/html\r\n\r\n'
'<!DOCTYPE html>\n'
'<html>\n'
'<head>\n'
'<meta http-equiv="X-WebKit-CSP" content="script-src \'nonce-dump-as-text\'">\n'
'<script nonce="dump-as-text">\n'
'if (window.testRunner)\n'
' testRunner.dumpAsText();\n'
'</script>\n'
'</head>\n'
'<body>\n'
'<p id="result">FAIL did not execute script.</p>\n'
'<script>\n'
'document.getElementById("result").textContent = "PASS did execute script.";\n'
'</script>\n'
'</body>\n'
'</html>\n'
)