blob: 383e7cbf4f93d6fc56e1937c0c277b0c8172d9d5 [file] [log] [blame]
<html>
<body>
<pre id='console'></pre>
<script type="text/javascript">
document.getElementById('console').innerHTML = (function() {
var xhr = new XMLHttpRequest;
try {
xhr.open("GET", "http://127.0.0.1:8000/xmlhttprequest/resources/access-control-sandboxed-iframe-allow.cgi", false);
} catch(e) {
return "FAIL: Exception thrown. Sandboxed iframe XHR access is not allowed in 'open'. [" + e.message + "].";
}
try {
xhr.send();
} catch(e) {
return "FAIL: Exception thrown. Sandboxed iframe XHR access is not allowed in 'send'. [" + e.message + "].";
}
return xhr.responseText;
})();
</script>
</body>
</html>