3

如标题所示:PhoneGap / jQuery Mobile 应用程序在 webview 模式下是否允许“ POST ”跨域 ajax 请求?前提是两者$.mobile.allowCrossDomainPages$.support.cors设置为 true。

4

2 回答 2

2

你不需要其中任何一个。

如果您在 iOS 中,只需添加一个新的外部主机并将其值设置为 *

如果您使用的是 Android,请将其添加到您的清单中

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

这是关于同一主题的另一篇文章 -phonegap 1.3.0 中的白名单状态是什么?

于 2012-05-04T19:31:34.510 回答
0
jQuery.support.cors = true;

也试试这个

于 2012-12-13T20:26:23.860 回答