For Ajax, Subdomains are Cross-Domain

Album Cover: No Code

"Are you woman enough to be my man?"
Pearl Jam / Hail Hail

Posted on August 19, 2006 12:28 AM in Web Development
Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

Mixed in with a whole lot of good information about cross-domain Ajax, I found an interesting tip about Ajax and subdomains over at Jonathan Snook's site:

Plenty of us have our sites running at and at They both point to the very same place. To us, we see them as the same thing. But to an Ajax call, it's considered cross domain. Therefore, if you have to make an Ajax call to the same server, don't code the domain as part of the request; just use the path.

Something to store in your memory banks for the next time (or the first time) you decide to play around with Ajax.


Achshar on March 03, 2010 at 10:41 AM:

thanks :)


Ashwin on October 27, 2018 at 2:00 AM:

This tutorial is so nice for me and am using this to increase knowledge of synchronization setting. You should also need to visit this sync files windows 10 and get exact knowledge to restore computer data.


Post Comments

If you feel like commenting on the above item, use the form below. Your email address will be used for personal contact reasons only, and will not be shown on this website.


Email Address:



Check this box if you hate spam.