Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / origin-header-cross-origin-post-async.html
blob4e440b43658f04e477d99d67f02f6de17027bb49
1 <html>
2 <body>
3 <pre id="console"></pre>
4 <script>
5 function log(message) {
6 document.getElementById('console').appendChild(document.createTextNode(message + '\n'));
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
14 var xhr = new XMLHttpRequest();
15 xhr.open('POST', 'http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-access-control-origin-header.cgi', true);
16 xhr.onload = function () {
17 log(xhr.responseText);
18 if (window.testRunner)
19 testRunner.notifyDone();
21 xhr.send(null);
22 </script>
23 </body>
24 </html>