| Index: LayoutTests/http/tests/security/resources/cors-redirect.php
|
| diff --git a/LayoutTests/http/tests/security/resources/cors-redirect.php b/LayoutTests/http/tests/security/resources/cors-redirect.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..37240b85016349cb984d03542e2945cfd2f92bca
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/resources/cors-redirect.php
|
| @@ -0,0 +1,10 @@
|
| +<?php
|
| +header("HTTP/1.1 307 Temporary Redirect");
|
| +if ($_GET['mode'] == "anonymous") {
|
| + header("Access-Control-Allow-Origin: *");
|
| +} else if ($_GET['mode'] == "use-credentials") {
|
| + header("Access-Control-Allow-Credentials: true");
|
| + header("Access-Control-Allow-Origin: " . $_SERVER['HTTP_ORIGIN']);
|
| +}
|
| +header("Location: ".$_GET["url"]);
|
| +?>
|
|
|