我在跨移动平台的Sencha Touch Framework中工作,我在mac os x localhost中运行我的项目,我试图通过Ext.Ajax.request获得服务器的响应。我要求的网站是在Wordpress,我尝试了jt-cross-domain-ajax插件来解决我的问题,但我无法做到这一点。我的服务器代码:
add_action('wp_ajax_fun', 'myFunc
当我在Android模拟器或我的Android设备上运行我的应用程序时,我会看到他在所有AJAX请求上都出现了错误:
Failed to load resource: the server responded将<plugin name="cordova-plugin-whitelist" version="1" />添加到config.xml中。default-src * 'unsafe-inline';">