blob: 04f48ea6cfe5bcd9f4d211f66389513963b516d8 [file] [log] [blame]
<?php
$refer = $_SERVER['HTTP_REFERER'];
$expected = $_GET['expected'];
if ($refer != $expected) {
header("Content-type: text/plain");
echo $refer;
exit;
}
header("Content-type: image/png");
echo file_get_contents("../../security/contentSecurityPolicy/block-all-mixed-content/resources/red-square.png");
exit;
?>