summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/metadata/redirect/redirect-https-downgrade.sub.html
blob: 4e5a48e6f6e72e3ce842e17b4d2a30ec7bd1224f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/fetch/metadata/resources/helper.js></script>
<script src=/fetch/metadata/resources/redirectTestHelper.sub.js></script>
<script src=/common/security-features/resources/common.sub.js></script>
<script src=/common/utils.js></script>
<body>
  <script>
  let nonce = token();
  let expected = { "site": "", "user": "", "mode": "", "dest": "" };

  // Validate various scenarios handle a request that redirects from https => http correctly and avoids disclosure of any Sec- headers.
  RunCommonRedirectTests("Https downgrade", downgradeRedirectTo, expected);
</script>
</body>