CORS and phonegap apps

PhoneGap you can just XHR directly to remote servers and it
should “just work”. Cross-domain policy does not apply to PhoneGap
(for a variety of reasons, basically because your app is essentially
running off the file:// URI on-device).

Please be aware that you will have to set up a whitelist for your apps
to access these external domains. Please check this link:

http://docs.phonegap.com/en/1.8.0rc1/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide

Leave a Comment