1
0
Fork 0
firefox/testing/web-platform/tests/xhr/access-control-basic-allow-star.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

12 lines
420 B
JavaScript

// META: title=Tests "*" setting for Access-Control-Allow-Origin header
// META: script=/common/get-host-info.sub.js
const xhr = new XMLHttpRequest;
test(function(test) {
xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-allow-star.py", false);
xhr.send();
assert_equals(xhr.responseText, "PASS: Cross-domain access allowed.");
}, "Allow star");