Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are 'POST' cross domains ajax requests allowed in PhoneGap / jQuery Mobile apps?

As in the title: Are 'POST' cross domains ajax requests allowed in PhoneGap / jQuery Mobile apps in webview mode? Providing that both $.mobile.allowCrossDomainPages and $.support.cors are set to true.

like image 775
tkane Avatar asked Dec 05 '25 14:12

tkane


1 Answers

You don't need either of those.

if you're in iOS just add a new external host and set it's value to *

if you're in Android add this to your manifest

<access origin="https://example.com" subdomains="true" />

here's another post about the same topic - What is the state of whitelisting in phonegap 1.3.0?

like image 59
Drew Dahlman Avatar answered Dec 08 '25 06:12

Drew Dahlman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!