* check for the origin of the url (with or without www) to select the suitable ajax url to fullfill the same origin policy