fetch-preflight.https.sub.any.js (1022B)
1 // META: global=window,worker 2 // META: script=/fetch/metadata/resources/helper.js 3 4 // Site 5 promise_test(t => { 6 return validate_expectations_custom_url("https://{{hosts[][www]}}:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py", 7 { 8 mode: "cors", 9 headers: { 'x-test': 'testing' } 10 }, { 11 "site": "same-site", 12 "user": "", 13 "mode": "cors", 14 "dest": "empty" 15 }, "Same-site fetch with preflight"); 16 }, "Same-site fetch with preflight"); 17 18 promise_test(t => { 19 return validate_expectations_custom_url("https://{{hosts[alt][www]}}:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py", 20 { 21 mode: "cors", 22 headers: { 'x-test': 'testing' } 23 }, { 24 "site": "cross-site", 25 "user": "", 26 "mode": "cors", 27 "dest": "empty" 28 }, "Cross-site fetch with preflight"); 29 }, "Cross-site fetch with preflight");