root/LayoutTests/http/tests/security/resources/image-access-control.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
$allowOrigin = $_GET['allow'];
if ($allowOrigin == "true") {
    header("Access-Control-Allow-Origin: *");
}

$file = $_GET['file'];
$fp = fopen($file, 'rb');
header("Content-Type: image/png");
header("Content-Length: " . filesize($file));

fpassthru($fp);
exit;
?>

/* [<][>][^][v][top][bottom][index][help] */