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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/webfont/resources/cookie-match.php
diff --git a/LayoutTests/http/tests/webfont/resources/cookie-match.php b/LayoutTests/http/tests/webfont/resources/cookie-match.php
new file mode 100644
index 0000000000000000000000000000000000000000..fb9b3153af738dd33268480037bd7da58ab2c669
--- /dev/null
+++ b/LayoutTests/http/tests/webfont/resources/cookie-match.php
@@ -0,0 +1,18 @@
+<?php
+
+if (!isset($_COOKIE["key"])) {
+ echo "FAIL: Cookie is not set";
+ exit;
+}
+
+if ($_GET["key"] == $_COOKIE["key"]) {
+ $fp = fopen("../../../../resources/Ahem.ttf", "rb");
+ header("Content-type: application/octet-stream");
+ header("HTTP/1.0 200 OK");
+ fpassthru($fp);
+} else {
+ echo "FAIL: Cookie: {$_COOKIE['key']}, Query: {$_GET['key']}";
+ exit;
+}
+
+?>

Powered by Google App Engine
This is Rietveld 408576698