blob: c55e037d1dc15c1247c1a0ad2396c1416b577800 [file] [log] [blame]
<body>
<script>
function request() {
var client = new XMLHttpRequest,
baseurl = "http://{{hosts[][www]}}:{{ports[http][0]}}{{location[pathname]}}",
subresource = "fake_responses.py",
redirecturl = new URL(subresource, "https://{{hosts[][www]}}:{{ports[https][0]}}{{location[pathname]}}").href,
url = new URL(subresource + "?redirect=" + redirecturl, baseurl).href;
client.open("GET", url, false)
client.send(null)
client.open("GET", url, false)
client.send(null)
}
if(window.parent.setup_iframe) {
window.parent.setup_iframe();
request();
}
</script>
</body>