Hi Huang Liop, Thank you for trying Crosswalk!
1. Could you please check https://crosswalk-project.org/documentation/manifest/xwalk_hosts.html , add xwalk_hosts in manifest.json? "xwalk_hosts": [ "http://10.64.11.192:8080/" ] 2. If you are using Crosswalk based Cordova, please try to use a custom command-line by adding a text file called xwalk-command-line (no suffix) to the assets/ directory of your Android apk package. This file should contain a single line, representing the xwalk command line to run; in this case, the line would be: xwalk --disable-web-security The flag enables feature "don't enforce the same-origin policy" (Used by people testing their sites.) ↪ Please refer to http://peter.sh/experiments/chromium-command-line-switches/ (Search --disable-web-security) BR Belem From: Crosswalk-help [mailto:[email protected]] On Behalf Of huangliop Sent: Tuesday, March 17, 2015 10:30 AM To: [email protected] Subject: [Crosswalk-help] Hi,Crosswalk-Lite has a across-domains problem. Hi, i use Crosswalk-Lite. html5 code send a ajax request,but it canot reached.and there is no any logs. The some code is work fine in Cordova without Crosswalk-Lite and Crosswalk 13. But i get ''Access-Control-Allow-Origin' in Cordova 10.39.232.0. There is logs: "XMLHttpRequest cannot load http://10.64.11.192:8080/api/login. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access.", source: file:///android_asset/www/login/index.html (0) Please help me Thanks! _______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
