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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/abe-cookie-check.php

Issue 1487343002: Set credentials mode "same-origin" when crossOrigin=anonymous is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 $cookie_check = $_GET["Cookie"];
3 if (isset($cookie_check)) {
4 if ($cookie_check == "NotSet") {
5 if (isset($_COOKIE['TestCookie'])) {
6 header("HTTP/1.0 404 Not Found");
7 exit;
8 }
9 } else if ($cookie_check != $_COOKIE['TestCookie']) {
10 header("HTTP/1.0 404 Not Found");
11 exit;
12 }
13 }
14
15 $name = 'abe.png';
16 $fp = fopen($name, 'rb');
17 header("Content-Type: image/png");
18 header("Content-Length: " . filesize($name));
19
20 fpassthru($fp);
21 exit;
22 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698