chromium/third_party/blink/web_tests/http/tests/security/originHeader/resources/print-origin.cgi

#!/usr/bin/perl -wT
use strict;

print "Content-Type: text/html\n";
print "Access-Control-Allow-Origin: *\n";
print "Cache-Control: no-store\n\n";

print "HTTP_ORIGIN: " . $ENV{"HTTP_ORIGIN"} . "\n";
print <<DONE
<script>
    if (window.testRunner)
        testRunner.notifyDone();
</script>
DONE