summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/script-src/script-src-1_3.html
blob: bf7a6921b4d0dc403faaa716814352db4681d77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE HTML>
<html>
<head>
    <title>Positive test case: Inline script should run 'unsafe-inline' script-src directive.</title>
    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';">
    <script src='/resources/testharness.js'></script>
    <script src='/resources/testharnessreport.js'></script>
    <script src='inlineSuccessTest.js'></script>
</head>
<body>
    <h1>Positive test case: Inline script should run 'unsafe-inline' script-src directive.</h1>
    <div id='log'></div>

    <script>
      inlineRan = true;
    </script>
</body>
</html>