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"); |
} |