blob: 097bdaee95ea60a1a0c5433efadf991b408c2051 [file] [log] [blame]
<?php
$isTestingMultipart = $_GET["isTestingMultipart"];
$destinationOrigin = $_GET["destinationOrigin"];
header('HTTP/1.0 200 OK');
header('Referrer-Policy: ' . $_GET["value"]);
if ($isTestingMultipart) {
header("Content-Type: multipart/x-mixed-replace;boundary=boundary");
echo("--boundary\r\n");
echo("Referrer-Policy: " . $_GET["value"] . "\r\n");
echo("Content-type: text/html\r\n");
echo("\r\n");
echo("<iframe src='" . $destinationOrigin . "security/resources/postReferrer.php'></iframe>\r\n");
echo("--boundary\r\n");
} else {
header("Content-Type: text/html");
echo("\r\n");
echo("<iframe src='" . $destinationOrigin . "security/resources/postReferrer.php'></iframe>\r\n");
}
?>