Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/security/resources/pass-if-no-referrer.php |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/pass-if-no-referrer.php b/third_party/WebKit/LayoutTests/http/tests/security/resources/pass-if-no-referrer.php |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0fb3795eb6efc1282d6b3c3ff9f33d62dd585254 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/pass-if-no-referrer.php |
| @@ -0,0 +1,8 @@ |
| +<?php |
| +if ($_SERVER['HTTP_REFERER'] == '') { |
| + http_response_code(200); |
| +} else { |
| + http_response_code(500); |
| +} |
| +header('Content-Type: text/html'); |
| +?> |