chromium/third_party/blink/web_tests/http/tests/security/resources/echo-referrer-header.php

<?php
header("Access-Control-Allow-Origin: *");
$referrer = $_SERVER['HTTP_REFERER'];
if ($referrer == "") {
    echo "HTTP Referer header is empty";
} else {
    echo $referrer;
}
?>