| Index: LayoutTests/http/tests/security/resources/cors-script.php
|
| diff --git a/LayoutTests/http/tests/security/resources/cors-script.php b/LayoutTests/http/tests/security/resources/cors-script.php
|
| index 61f3de82f214745c2ecd171ef61ddbf3bb3b4128..c9b1a37d4f3463d9a2c2e3041d3a975465dbde74 100644
|
| --- a/LayoutTests/http/tests/security/resources/cors-script.php
|
| +++ b/LayoutTests/http/tests/security/resources/cors-script.php
|
| @@ -2,8 +2,14 @@
|
| if (strtolower($_GET["cors"]) != "false") {
|
| header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
|
| }
|
| +if (strtolower($_GET["credentials"]) == "true") {
|
| + header("Access-Control-ALlow-Credentials: true");
|
| +}
|
| header("Content-Type: application/javascript");
|
| -if (strtolower($_GET["fail"]) == "true")
|
| +$value = $_GET['value'];
|
| +if ($value)
|
| + echo "result = \"" . $value . "\";";
|
| +else if (strtolower($_GET["fail"]) == "true")
|
| echo "throw({toString: function(){ return 'SomeError' }});";
|
| else
|
| echo "alert('script ran.');";
|
|
|