summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/trusted-types/trusted-types-reporting-check-report.html
blob: ae5ac25052d34be4d64bada3fb23283c783978ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <title>Check Trusted Type violation reports</title>

<!-- We assume these HTTP headers are set on the request:

  Set-Cookie: trusted-types-reporting-check-report={{$id:uuid()}}; Path=/trusted-types/
  Content-Security-Policy-Report-Only: \
     trusted-types one two; \
     report-uri /reporting/resources/report.py?op=put&reportID={{$id}}
-->
</head>
<body>
  <script>
    trustedTypes.createPolicy("three", {});
  </script>
  <script async defer src='../content-security-policy/support/checkReport.sub.js?reportField=violated-directive&reportValue=trusted-types'></script>
</body>
</html>