When using XCode and phonegap, I usually edit the .plist file to whitelist the url of my AJAX requests. How is this done in Eclipse on an Android phonegap project? After Googling the issue, I did come across editing the .htaccess file and adding in
Access-Control-Allow-Origin *
I don't have permissions to modify the .htaccess file.
This works fine for iPhone when whitelisted. On Android, I get the
xmlhttprequest cannot load is not allowed by access-control-allow-origin
error, so being that it works with the iPhone with no issue after adding the url to the whitelist, do I have to modify the server for this to work? or can I whitelist the URL in this Android project in Eclipse using Phonegap? I do have access to the PHP files the ajax requests to, is there something I can do with those if whitelisting isn't an option?