For Ajax, Subdomains are Cross-Domain

Album Cover: Life After Death

"While your gun's raisin', mine is blazin'."
The Notorious B.I.G. / I Love the Dough

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 www.example.com and at example.com. 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.

Comments

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

thanks :)

Permalink

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.

Permalink

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.

Name:

Email Address:

Website:

Comments:

Check this box if you hate spam.