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