chromium/third_party/blink/web_tests/http/tests/xmlhttprequest/resources/echo-request-origin.php

<?php
header('Content-Type: text/plain');
if (isset($_SERVER['HTTP_ORIGIN']))
    echo 'Origin: ' . $_SERVER['HTTP_ORIGIN'];
else
    echo 'Origin: <missing>';
?>