Index: LayoutTests/http/tests/css/resources/cors-ahem.php |
diff --git a/LayoutTests/http/tests/css/resources/cors-ahem.php b/LayoutTests/http/tests/css/resources/cors-ahem.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a18850e4048ae46caf6e4224c2c87ac77e140314 |
--- /dev/null |
+++ b/LayoutTests/http/tests/css/resources/cors-ahem.php |
@@ -0,0 +1,19 @@ |
+<?php |
+ |
+if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) { |
+ header("HTTP/1.1 304 Not Modified"); |
+} else { |
+ $font = "../../../../resources/Ahem.ttf"; |
+ |
+ header("Cache-Control: public, max-age=86400"); |
+ header('Last-Modified: ' . gmdate("D, d M Y H:i:s", filemtime($font)) . " GMT"); |
+ header("Content-Type: font/truetype"); |
+ header("Content-Length: " . filesize($font)); |
+ header("Access-Control-Allow-Origin: *"); |
+ header("Timing-Allow-Origin: *"); |
+ ob_clean(); |
+ flush(); |
+ readfile($font); |
+} |
+ |
+?> |