<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
var xhr = new XMLHttpRequest(); | |
xhr.onload = function() { | |
console.log('xhr.status = ' + xhr.status); | |
}; | |
// Suppress usage of credentials cached from other tests in pre-emptive auth by adding a bogus user to the URL. | |
xhr.open("GET", "http://user@127.0.0.1:8000/inspector-protocol/network/resources/unauthorised.pl"); | |
xhr.send(); | |
</script> | |
</head> | |
</html> |