Monday, December 22, 2008

with "www" and without "www" is considered as separate domain from ajax perspective

When you try to make XMLHTTPRequest to fetch the xml file. The requestor and the requested xml file should be in the same domain.

Once i unknowingly removed "www" from the variable. It was throwing the cross domain issue. Since the later part of the domain was same... felt difficult to know what the error was.

No comments:

Post a Comment