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:
In Ruby on Rails, you can do in a controller:
headers['Access-Control-Allow-Origin'] = '*'