Index: LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-headers-origin.php |
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-headers-origin.php b/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-headers-origin.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e13eaf72ae7520249b60eb89f878cdfab47ec643 |
--- /dev/null |
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-headers-origin.php |
@@ -0,0 +1,10 @@ |
+<?php |
+ header("Access-Control-Allow-Origin: *"); |
+ |
+ if ($_SERVER["REQUEST_METHOD"] == "OPTIONS") { |
+ if (stristr($_SERVER["HTTP_ACCESS_CONTROL_REQUEST_HEADERS"], "Origin") === false) |
+ header("Access-Control-Allow-Headers: X-Custom-Header"); |
+ } |
+ else |
+ echo $_SERVER["HTTP_X_CUSTOM_HEADER"]; |
+?> |