OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <!-- No 'treat-as-public-address' CSP directive, so we count as internal. --
> |
| 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="/resources/testharnessreport.js"></script> |
| 7 <script src="./resources/preflight.js"></script> |
| 8 </head> |
| 9 <body> |
| 10 <script> |
| 11 promise_test(function (t) { |
| 12 return fetch(preflightURL('fail-with-500', 'json')) |
| 13 .then(function (response) { |
| 14 return response.json(); |
| 15 }).then(function (json) { |
| 16 assert_equals('success', json.jsonpResult); |
| 17 }); |
| 18 }, "'fetch()' should not generate a preflight for simple requests from i
nternal to internal"); |
| 19 </script> |
| 20 </body> |
| 21 </html> |
OLD | NEW |