blob: 5a0791557b004d8a1e589d7990f3aee32f2e80d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE html>
<html>
<body>
<script>
"use strict";
let src = document.location.href.replace("hsts_headers_framed.html", "hsts_headers.sjs");
if (document.location.search == "?third-party") {
src = src.replace("example.com", "example.org");
}
let frame = document.createElement("iframe");
frame.setAttribute("src", src);
frame.onload = () => {
let done = document.createElement("h1");
done.textContent = "done";
done.setAttribute("id", "done");
document.body.appendChild(done);
};
document.body.appendChild(frame);
</script>
</body>
</html>
|