chromium/third_party/blink/web_tests/http/tests/security/resources/abe-allow-credentials.php

<?php
if (isset($_GET["Cookie"])) {
  $cookie_check = $_GET["Cookie"];
  if ($cookie_check == "NotSet") {
    if (isset($_COOKIE['TestCookie'])) {
      header("HTTP/1.0 404 Not Found");
      exit;
    }
  } else if ($cookie_check != $_COOKIE['TestCookie']) {
    header("HTTP/1.0 404 Not Found");
    exit;
  }
}

$secure = isset($_GET["Secure"]);
$origin = $secure ? "https://127.0.0.1:8443" : "http://127.0.0.1:8000";
header("Access-Control-Allow-Origin: " . $origin);
header("Access-Control-Allow-Credentials: true");

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

fpassthru($fp);
exit;
?>