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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/cors-script.php

Issue 2343053002: Service worker bypass for resource requests from suborigins (Closed)
Patch Set: Update to handle MemCache Created 4 years, 3 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: third_party/WebKit/LayoutTests/http/tests/security/resources/cors-script.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/cors-script.php b/third_party/WebKit/LayoutTests/http/tests/security/resources/cors-script.php
index 29721a66b08c46081305eef9ed3177f9e39a226c..15a41031b819de67b18f6c4d7a3574b97990c52d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/resources/cors-script.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/cors-script.php
@@ -15,6 +15,11 @@ if (!(empty($custom_header_arg))) {
header("Access-Control-Allow-Headers: " . $custom_header_arg);
}
+$suborigin_arg = strtolower($_GET["suborigin"]);
+if (!(empty($suborigin_arg))) {
+ header("Access-Control-Allow-Suborigin: " . $suborigin_arg);
+}
+
if ($_SERVER["HTTP_SUBORIGIN"] == "foobar") {
header("Access-Control-Allow-Suborigin: foobar");
}

Powered by Google App Engine
This is Rietveld 408576698