0

I would like to access an external web service from a phonegap app using ajax without having to resort to CORS or JSONP to circumvent the cross origin issue. Looking at this question, it would appear that cross site http calls are not an issue with phonegap based apps. However, there are some conflicting comments in the answer. Is anyone able to provide a definitive answer to this question within the context of phonegap for ios/andriod platforms?

Community
  • 1
  • 1
mr_js
  • 949
  • 12
  • 29

1 Answers1

0

With phonegap, the only thing you have to do is allow access to the server by configuring access origin in config.xml.

No need of CORS or JSONP like you would have to do for example with rhodes.

QuickFix
  • 11,661
  • 2
  • 38
  • 50