chromium/third_party/blink/web_tests/http/tests/xmlhttprequest/resources/cross-origin-preflight-get.php

<?php
if(!isset($_SERVER['HTTP_ORIGIN'])) {
    echo "FAIL: No origin header sent";
} else {
    header("Access-Control-Allow-Origin: *");
    header("Access-Control-Allow-Headers: X-Proprietary-Header");
    echo "PASS: Origin header correctly sent";
}
?>