<html> | |
<body> | |
This page will attempt to load an image requiring basic auth from the | |
domain www.b.com using the same port that it loaded (since we assume www.b.com | |
is an alias for this same server). | |
<script> | |
var img = document.createElement("img"); | |
img.src = "http://www.b.com:" + location.port + "/auth-basic/foo.jpg"; | |
document.body.appendChild(img); | |
</script> | |
</body> | |
</html> | |