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

Side by Side Diff: LayoutTests/http/tests/security/resources/green-if-cors-anonymous.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
(Empty)
1 <?php
2 if (isset($_SERVER['HTTP_ORIGIN']) && !isset($_COOKIE['cookie'])) {
3 header("Access-Control-Allow-Origin: *");
4 $name = 'green-background.css';
5 } else {
6 $name = 'red-background.css';
7 }
8
9 $fp = fopen($name, 'rb');
10 header("Content-Type: text/css");
11 header("Content-Length: " . filesize($name));
12
13 fpassthru($fp);
14 exit;
15 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698