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

Side by Side Diff: LayoutTests/http/tests/webfont/resources/cookie-match.php

Issue 1267023004: WebFonts: Send credentials for same origin requests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 4 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
3 if (!isset($_COOKIE["key"])) {
4 echo "FAIL: Cookie is not set";
5 exit;
6 }
7
8 if ($_GET["key"] == $_COOKIE["key"]) {
9 $fp = fopen("../../../../resources/Ahem.ttf", "rb");
10 header("Content-type: application/octet-stream");
11 header("HTTP/1.0 200 OK");
12 fpassthru($fp);
13 } else {
14 echo "FAIL: Cookie: {$_COOKIE['key']}, Query: {$_GET['key']}";
15 exit;
16 }
17
18 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698