4 <script src=
"/resources/testharness.js"></script>
5 <script src=
"/resources/testharnessreport.js"></script>
7 if (document
.location
.hostname
== "127.0.0.1") {
8 document
.location
.hostname
= "subdomain.example.test";
11 document
.domain
= 'example.test';
13 var xhr
= new XMLHttpRequest();
14 xhr
.open('POST', 'resources/post-echo.cgi', false);
16 assert_equals(xhr
.responseText
, "PASS");
17 }, "XMLHttpRequest allowed with document.domain set.");