Are "POST" cross-domains allowed ajax requests allowed in PhoneGap / jQuery mobile applications?

As in the title: " POST " cross-domain ajax requests are allowed in PhoneGap / jQuery mobile apps in web browsing mode? If $.mobile.allowCrossDomainPagesand is $.support.corsset to true.

+3
source share
2 answers

You do not need either one or the other.

if you are on iOS just add a new external host and set it to *

if you are on Android add this to your manifest

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

Here is another message about the same topic - What is the status of the white list in the phone 1.3.0?

+2
source
jQuery.support.cors = true;

0

All Articles