[CSS Shapes] CORS-enabled fetch for shape image values
[WebKit-https.git] / LayoutTests / http / tests / security / resources / image-access-control.php
1 <?php
2 $allowOrigin = $_GET['allow'];
3 if ($allowOrigin == "true") {
4     header("Access-Control-Allow-Origin: *");
5 }
6
7 $file = $_GET['file'];
8 $fp = fopen($file, 'rb');
9 header("Content-Type: image/png");
10 header("Content-Length: " . filesize($file));
11
12 fpassthru($fp);
13 exit;
14 ?>