Index: LayoutTests/http/tests/xmlhttprequest/resources/access-control-basic-post-success-no-content-type.php |
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/access-control-basic-post-success-no-content-type.php b/LayoutTests/http/tests/xmlhttprequest/resources/access-control-basic-post-success-no-content-type.php |
new file mode 100755 |
index 0000000000000000000000000000000000000000..4f7fb544a5201f732bac1380af7a6f5cbf149552 |
--- /dev/null |
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/access-control-basic-post-success-no-content-type.php |
@@ -0,0 +1,11 @@ |
+<?php |
+ $request_origin_value = $_SERVER["HTTP_ORIGIN"]; |
+ |
+ if ($_SERVER['REQUEST_METHOD'] == "POST") { |
+ if (!is_null($request_origin_value)) |
+ header("Access-Control-Allow-Origin: $request_origin_value"); |
+ echo "PASS"; |
+ } else { |
+ echo "FAIL"; |
+ } |
+?> |