Not sure if it is the same problem, but I wasn't able to load an external
url with Xwalk 10 because of line 170 in CordovaBridge.java:
if (origin.startsWith("file:") || (origin.startsWith("http") &&
loadedUrl.startsWith(origin))) {
The xwalk cordovawebview doesn't call reset() and loadedURL is always null
I changed it to
if (origin.startsWith("file:") || (origin.startsWith("http"))) {
And all was ok
On Wed, Nov 19, 2014 at 7:39 AM, Rajil <[email protected]> wrote:
> Hello experts;
>
> I am using crosswalk in my cordova based application. Everything was
> working fine with cordova 3.5 and crosswalk 9 release.
>
> As soon as I upgraded my application to cordova 3.6.3 now and crosswalk
> cordova 10, I started getting error "No 'Access-Control-Allow-Origin'
> header is present on the requested resource." while calling external URL to
> authenticate user login.
>
> Do i need to change any code or put any configuration file to work with
> external URL in my cordova based android application using crosswalk 10?
>
> I was searching on this issue and found following URL:
> https://crosswalk-project.org/documentation/manifest/xwalk_hosts.html
>
> it says to put manifest.json with "xwalk_hosts" tag and i did following:
>
> Created new file manifest.json under www directory along with index.html
> file and written following content in it.
>
> "xwalk_hosts": [
> "*"
> ]
>
> but this is not working. Any solution to this?
>
>
> regards,
> Rajil Davda
> Applied Software
>
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>
>
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help