1
0
Fork 0
firefox/testing/web-platform/tests/fetch/metadata/fetch-preflight.https.sub.any.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

29 lines
1,022 B
JavaScript

// META: global=window,worker
// META: script=/fetch/metadata/resources/helper.js
// Site
promise_test(t => {
return validate_expectations_custom_url("https://{{hosts[][www]}}:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py",
{
mode: "cors",
headers: { 'x-test': 'testing' }
}, {
"site": "same-site",
"user": "",
"mode": "cors",
"dest": "empty"
}, "Same-site fetch with preflight");
}, "Same-site fetch with preflight");
promise_test(t => {
return validate_expectations_custom_url("https://{{hosts[alt][www]}}:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py",
{
mode: "cors",
headers: { 'x-test': 'testing' }
}, {
"site": "cross-site",
"user": "",
"mode": "cors",
"dest": "empty"
}, "Cross-site fetch with preflight");
}, "Cross-site fetch with preflight");