ajax cross-domain requests
Posted
by
yoda
on Stack Overflow
See other posts from Stack Overflow
or by yoda
Published on 2011-01-04T23:33:26Z
Indexed on
2011/01/04
23:54 UTC
Read the original article
Hit count: 223
Hi,
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 :
https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript
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 :
document.domain = "company.com";
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?
Thanks.
© Stack Overflow or respective owner