summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/json-module/crossorigin-import-parse-error-with-cors.sub.html
blob: 9972c53d1b66aca7b8bdf3f7c2988041642c42ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
    <title>json-module-import-cross-domain-parse-error-WithCORS</title>
    <script src="../module/crossorigin-common.js"></script>
</head>
<body>
    <h1>json-module-import-cross-domain-parse-error-WithCORS</h1>
    <script type="module" crossorigin>
        import json from "http://{{domains[www2]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/json-module/parse-error.json?pipe=header(Access-Control-Allow-Origin,*)" with { type: "json" };
        // Push an event to the log indicating that the script was executed.
        document._log.push(`imported JSON: ${json.answer}`);
    </script>
</body>
</html>