title: ajax cross-domain requests
body: <p>Since Ajax requests are limited for security reasons, there's not much to it, just follow the rules eh .. but I've crossed with this :</p>
  
  <p><a href="https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript" rel="nofollow">https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript</a></p>
  
  <p>It's written that you can "bypass" those rules, in case you're working with subdomains of the same domain, with the following javascript line :</p>
  
  <pre><code>document.domain = "company.com";
  </code></pre>
  
  <p>I haven't tried it yet, since I don't know if this only works (perfectly works) with any other browser, or at least the major ones. Is it possible?</p>
  
  <p>Thanks.</p>