blob: 42209cd4341d1d2ea167732c6e4f2653df6f83f9 [file] [log] [blame]
<script>
function testSameOrigin()
{
var req = new XMLHttpRequest;
req.open("GET", "xhr-vary-header-response.py");
req.onload=function() { parent.postMessage(req.responseText, "http://127.0.0.1:8000") }
req.send();
}
window.onmessage = function() { testSameOrigin() }
</script>
<button onclick="testSameOrigin()">Make same origin request</button>