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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/abe-allow-star.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/resources/abe-allow-star.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/abe-allow-star.php b/third_party/WebKit/LayoutTests/http/tests/security/resources/abe-allow-star.php
index d3d621d646477d864a789c6c5a00064c172dfaa7..3bd092a42c029a944b826b0887a66698bed5f7d3 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/resources/abe-allow-star.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/abe-allow-star.php
@@ -1,4 +1,17 @@
<?php
+$cookie_check = $_GET["Cookie"];
+if (isset($cookie_check)) {
+ if ($cookie_check == "NotSet") {
+ if (isset($_COOKIE['TestCookie'])) {
+ header("HTTP/1.0 404 Not Found");
+ exit;
+ }
+ } else if ($cookie_check != $_COOKIE['TestCookie']) {
+ header("HTTP/1.0 404 Not Found");
+ exit;
+ }
+}
+
header("Access-Control-Allow-Origin: *");
$name = 'abe.png';

Powered by Google App Engine
This is Rietveld 408576698