summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/crossorigin-import-wrongheader.sub.html
blob: 5743a9e30429b96a0f57db173e3f9ac63d359a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
    <title>html-script-module-crossOrigin-root-BlockedWrongHeader</title>
    <script src="crossorigin-common.js"></script>
</head>
<body>
    <h1>html-script-module-crossOrigin-root-BlockedWrongHeader</h1>
    <script type="module" onerror="document._log.push('error');" crossorigin>

        import { foo } from "http://{{domains[www2]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/module/crossorigin-scripterror.js?pipe=header(Access-Control-Allow-Origin,http://{{domains[www2]}}:{{ports[http][0]}})";

    </script>
</body>
</html>