tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

report-uri-scheme-relative.html (655B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <script src="/resources/testharness.js"></script>
      5    <script src="/resources/testharnessreport.js"></script>
      6    <title>Relative scheme URIs are accepted as the report-uri.</title>
      7    <!-- CSP headers
      8         Content-Security-Policy: script-src 'self'; report-uri //{{location[host]}}/reporting/resources/report.py?op=put&reportID={{$id}}
      9         -->
     10 </head>
     11 <body>
     12  <script>
     13    // This script block will trigger a violation report.
     14    alert('FAIL');
     15  </script>
     16  <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27self%27'></script>
     17 </body>
     18 </html>