Index: LayoutTests/http/tests/xmlhttprequest/resources/redirect-cors-origin-null.php |
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/redirect-cors-origin-null.php b/LayoutTests/http/tests/xmlhttprequest/resources/redirect-cors-origin-null.php |
new file mode 100755 |
index 0000000000000000000000000000000000000000..52f24e9915439b356d7021bd6e82feec67c97895 |
--- /dev/null |
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/redirect-cors-origin-null.php |
@@ -0,0 +1,11 @@ |
+<?php |
+ $request_origin_value = $_SERVER["HTTP_ORIGIN"]; |
+ |
+ if ($_SERVER['REQUEST_METHOD'] == "GET") { |
+ header("HTTP/1.1 302"); |
+ header("Location: http://localhost:8000/xmlhttprequest/resources/redirect-cors-origin-null-pass.php"); |
+ } |
+ if (!is_null($request_origin_value)) { |
+ header("Access-Control-Allow-Origin: $request_origin_value"); |
+ } |
+?> |