Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /content-security-policy/script-src/scripthash-basic-blocked-error-event.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<head>
    <title>CSP script-hash block causes error event</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'sha256-deadbeef'"></meta>
</head>
<body>
    <script src="support/inline-script-should-be-blocked.js"></script>
</body>