title: A question about cross-domain (subdomain) ajax request
body: <p>Let's say I have the main page loaded from <a href="http://www.example.com/index.html" rel="noreferrer">http://www.example.com/index.html</a>. On that page there is js code that makes an ajax request to <a href="http://n1.example.com//echo?message=hello" rel="noreferrer">http://n1.example.com//echo?message=hello</a>. When the response is received a div on the main page is updated with the response body.</p>
  
  <p>Will that work on all popular browsers?</p>
  
  <p>Edit:</p>
  
  <p>The obvious solution is to put a proxy in front of www.example.com and n1.example.com and set it so that every request going to a subresource of <a href="http://www.example.com/n1" rel="noreferrer">http://www.example.com/n1</a> gets proxied to <a href="http://n1.example.com/" rel="noreferrer">http://n1.example.com/</a>.</p>