| Index: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/internal-to-internal-fetch.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/internal-to-internal-fetch.html b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/internal-to-internal-fetch.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..95abf8ea75227f75e0dd061d731f25ad6ed2f9e5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/internal-to-internal-fetch.html
|
| @@ -0,0 +1,21 @@
|
| +<!doctype html>
|
| +<html>
|
| +<head>
|
| + <!-- No 'treat-as-public-address' CSP directive, so we count as internal. -->
|
| + <script src="/resources/testharness.js"></script>
|
| + <script src="/resources/testharnessreport.js"></script>
|
| + <script src="./resources/preflight.js"></script>
|
| +</head>
|
| +<body>
|
| + <script>
|
| + promise_test(function (t) {
|
| + return fetch(preflightURL('fail-with-500', 'json'))
|
| + .then(function (response) {
|
| + return response.json();
|
| + }).then(function (json) {
|
| + assert_equals('success', json.jsonpResult);
|
| + });
|
| + }, "'fetch()' should not generate a preflight for simple requests from internal to internal");
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|