Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/internal-to-internal-fetch.html

Issue 1745083002: CORS-RFC1918: Force preflights for external requests in DocumentThreadableLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698