-
Notifications
You must be signed in to change notification settings - Fork 0
/
no-header.html
41 lines (33 loc) · 1.6 KB
/
no-header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<title>OKAC demos: no header</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<header>
<h1>Origin-keyed agent cluster demos</h1>
<h2>No header</h2>
</header>
<main>
<p>This page does not send an <code>Origin-Agent-Cluster</code> header. The subframe behavior will vary depending on what you choose.</p>
<button id="send">Try to send a <code>WebAssembly.Module</code></button>
<button id="sync-script">Try to sychronously script the iframe</button>
<label>
Choose a subframe behavior:
<select id="subframe-selector">
<option value="sub.html">No header, same-origin</option>
<option value="https://sub.origin-agent-cluster-demo.dev/sub.html">No header, cross-origin</option>
<option value="sub-explicit-false.html">Explicit ?0, same-origin</option>
<option value="https://sub.origin-agent-cluster-demo.dev/sub-explicit-false.html">Explicit ?0, cross-origin</option>
<option value="sub-with-header.html">Explicit ?1, same-origin</option>
<option value="https://sub.origin-agent-cluster-demo.dev/sub-with-header.html">Explicit ?1, cross-origin</option>
</select>
</label>
<p>Remember that you may need to start a fresh tab and copy-paste the current URL into it to perform some tests, after changing the dropdown.</p>
<iframe></iframe>
<pre id="output"></pre>
<script type="module" src="outer-script.mjs"></script>
</main>
<footer>
<a href="https://github.com/domenic/origin-agent-cluster-demo.dev">Source and demo index</a>
</footer>