tkane
tkane

Reputation: 1777

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.

Upvotes: 3

Views: 2209

Answers (2)

Clinton Ward
Clinton Ward

Reputation: 2511

jQuery.support.cors = true;

try this also

Upvotes: 0

Drew Dahlman
Drew Dahlman

Reputation: 4972

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?

Upvotes: 2

Related Questions