summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/referrer-policy/generic/meta-referrer-outofhead-fetch.http.html
blob: 1b7a7bada512112f95121afb124b26df82d0b0d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <meta name="referrer" content="no-referrer">
    <script>
      promise_test((t) =>
        fetch("/common/security-features/subresource/xhr.py")
          .then(res => res.json())
          .then(data => {
            assert_equals(data.headers.referer, undefined);
          }),
        "Referer header was not send");
    </script>
    <div id="log"></div>
  </body>
</html>