Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<html>
<head>
<title>Utility page which embeds a reporting page on the chosen host</title>
</head>
<body>
<script>
const searchParams = new URLSearchParams(window.location.search);
const host = searchParams.get('host') || '{{hosts[][]}}';
const reportID = searchParams.get('reportID') || '';
const frame = document.createElement('iframe');
frame.src = `https://${host}:{{ports[https][0]}}/reporting/resources/same-origin-report.https.sub.html?reportID=${reportID}`;
document.body.appendChild(frame);
</script>
</body>
</html>