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

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

Issue 1011103002: Allow cross-origin cssRules access to CORS-fetched stylesheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: compile fix.. Created 5 years, 9 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 = 'green-background.css'; 5 $name = 'green-background-import-credentials.css';
6 $fp = fopen($name, 'rb'); 6 $fp = fopen($name, 'rb');
7 header("Content-Type: text/css"); 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