Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: LayoutTests/http/tests/security/resources/green-background-allow-credentials.php

Issue 135723008: Add CORS support for <link> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add setCrossOriginAccessControl() helper to avoid repetition matching CORS attribute value Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 header("Access-Control-Allow-Origin: http://127.0.0.1:8000"); 2 header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
3 header("Access-Control-Allow-Credentials: true"); 3 header("Access-Control-Allow-Credentials: true");
4 4
5 $name = 'abe.png'; 5 $name = 'green-background.css';
6 $fp = fopen($name, 'rb'); 6 $fp = fopen($name, 'rb');
7 header("Content-Type: image/png"); 7 header("Content-Type: text/css");
8 header("Content-Length: " . filesize($name)); 8 header("Content-Length: " . filesize($name));
9 9
10 fpassthru($fp); 10 fpassthru($fp);
11 exit; 11 exit;
12 ?> 12 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698