Initial check-in testJam
authorpuhley
Thu, 03 May 2012 15:45:35 -0700
branchtestJam
changeset 57 35ee6783373f
parent 48 e872c4bb2244
child 58 c00e2ad92192
Initial check-in
tests/cors/submitted/webkit/resources/access-control-basic-whitelist-request-headers.php
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/cors/submitted/webkit/resources/access-control-basic-whitelist-request-headers.php	Thu May 03 15:45:35 2012 -0700
@@ -0,0 +1,17 @@
+<?php
+    header("Cache-Control: no-store");
+
+    if ($_SERVER['REQUEST_METHOD'] == "POST") {
+    	header("Access-Control-Allow-Credentials: true");
+    	header("Access-Control-Allow-Origin:" . $_SERVER["HTTP_ORIGIN"]);
+
+    	header("Accept: " . $_SERVER['HTTP_ACCEPT']);
+    	header("Accept-Language: " . $_SERVER['HTTP_ACCEPT_LANGUAGE']);
+    	header("Content-Language: " . $_SERVER['HTTP_CONTENT_LANGUAGE']);
+    	header("Content-Type: " . $_SERVER['CONTENT_TYPE']);
+
+    } else {
+    	echo "\n";
+    }
+?>
+