chromium/third_party/blink/web_tests/http/tests/security/resources/green-if-cors-credentialed.php

<?php
if (isset($_SERVER['HTTP_ORIGIN']) && $_COOKIE['cookie'] != '') {
    header("Access-Control-Allow-Origin: *");
    header("Access-Control-Allow-Credentials: true");
    $name = 'green-background.css';
} else {
    $name = 'red-background.css';
}

$fp = fopen($name, 'rb');
header("Content-Type: text/css");
header("Content-Length: " . filesize($name));

fpassthru($fp);
exit;
?>