I\'m making an Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in PhoneGap).
Ajax.request
The response from the server is the following:
if you're under apache, just add an .htaccess file to your directory with this content:
Header set Access-Control-Allow-Origin: * Header set Access-Control-Allow-Headers: content-type Header set Access-Control-Allow-Methods: *