blob: 0e2d802491820891702ddca34f6542f6bd9872bf [file] [log] [blame]
<script>
function testSameOrigin()
{
var req = new XMLHttpRequest;
req.open("GET", "xhr-vary-header-response.php");
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>