summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/x-frame-options/get-decode-split.html
blob: 9f5101d610eb28a3c48d7a8728b405984fe8a290 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<meta charset="utf-8">
<title>X-Frame-Options headers use the get, decode, and split algorithm</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/helper.sub.js"></script>

<body>
<script>
"use strict";

xfo_simple_tests({
  headerValue: `,SAMEORIGIN,,DENY,`,
  sameOriginAllowed: false,
  crossOriginAllowed: false
});

xfo_simple_tests({
  headerValue: `  SAMEORIGIN,    DENY`,
  sameOriginAllowed: false,
  crossOriginAllowed: false
});
</script>