https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1d80ed8c6e3c70dc91ecdc3942cf736c974e2490 authored by Behind The Math on 05 April 2018, 03:02:14 UTC
Add tests to check that the User-Agent header is set for XHR requests
Tip revision: 1d80ed8
script-src-1_10_1.html
<!DOCTYPE HTML>
<html>
<head>
    <title>data: as script src should run with a policy that specifies data: as an allowed source but not 'unsafe-inline'</title>
    <meta http-equiv="Content-Security-Policy" content="script-src 'self' data:;">
    <script src='/resources/testharness.js'></script>
    <script src='/resources/testharnessreport.js'></script>
</head>
<body>
    <h1>data: as script src should run with a policy that specifies data: as an allowed source but not 'unsafe-inline'</h1>
    <div id='log'></div>

    <script src="10_1_support_1.js"></script>

    <script src="data:text/javascript;charset=utf-8;base64,ZGF0YVNjcmlwdFJhbiA9IHRydWU7"></script>

    <script src="10_1_support_2.js"></script>
</body>
</html>
back to top