access-control-basic-allow-star.any.js (420B)
1 // META: title=Tests "*" setting for Access-Control-Allow-Origin header 2 // META: script=/common/get-host-info.sub.js 3 4 const xhr = new XMLHttpRequest; 5 6 test(function(test) { 7 xhr.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + "/xhr/resources/access-control-basic-allow-star.py", false); 8 9 xhr.send(); 10 11 assert_equals(xhr.responseText, "PASS: Cross-domain access allowed."); 12 }, "Allow star");