Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / origin-header-cross-origin-get-sync.html
blobd6fd6d5875fcf8e255d80c743a93a243fa1abd0a
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();
12 var xhr = new XMLHttpRequest();
13 xhr.open('GET', 'http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-access-control-origin-header.cgi', false);
14 xhr.send(null);
15 log(xhr.responseText);
16 </script>
17 </body>
18 </html>