Martin,

It seems your issue is not quite the same with Muly’s from your description, 
could you report an issue in jira(https://crosswalk-project.org/jira) and 
provide more information(error log or  sample code etc.)?  That will be helpful 
to identify your issue, thanks a lot.

Regards
Xingnan

From: Zhu, Yongsheng
Sent: Wednesday, June 04, 2014 4:55 PM
To: Martin Schürrer; Wang, Xingnan
Cc: Muly Oved; [email protected]
Subject: RE: [Crosswalk-help] Access-Control-Allow-Origin error on Android 
4.0.3 (OK on 4.4.2)

Then it should be a bug. I remember we tested it and it worked.
Xingnan, you investigated this issue. Could you please help to check it? thanks.

Yongsheng

From: Martin Schürrer [mailto:[email protected]]
Sent: Wednesday, June 04, 2014 4:52 PM
To: Zhu, Yongsheng
Cc: Muly Oved; 
[email protected]<mailto:[email protected]>
Subject: Re: [Crosswalk-help] Access-Control-Allow-Origin error on Android 
4.0.3 (OK on 4.4.2)

Hi,

just chiming in, we recently started using Cordvoa+Crosswalk 6 and ran into the 
same issue.

Even though setAllowUniversalAccessFromFileURLs and setAllowFileAccess are true 
we can't access file:///android_asset<file:///\\android_asset> URLs (and those 
should actually be treated differently from regular file:///<file:///\\> URLs 
and be allowed always anyhow AFAIK?)

Kind regards,
Martin Schuerrer

On Wed, Jun 4, 2014 at 3:38 AM, Zhu, Yongsheng 
<[email protected]<mailto:[email protected]>> wrote:
Muly,
I guess you may get XWalkSettings from XWalkView instance. There is one method 
called “setAllowUniversalAccessFromFileURLs(boolean)” in XWalkSettings. You 
could pass  ‘true’ value to enable cross origin XHR for your case.
Please let me know if you have further problems.

Thanks for trying Crosswalk.

Yongsheng

From: Crosswalk-help 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Muly Oved
Sent: Tuesday, June 03, 2014 3:33 PM
To: 
[email protected]<mailto:[email protected]>
Subject: [Crosswalk-help] Access-Control-Allow-Origin error on Android 4.0.3 
(OK on 4.4.2)

Have a Crosswalk/Cordova application doing login using Google OAuth API

When running on Android emulator version 4.0.3 API Level 15 I get 
Access-Control-Allow-Origin error

When running the same project on Android emulator version 4.4.2 API Level 19 it 
work fine

The project itself use Google API 4.4.2 API 19
Crosswalk version: crosswalk-cordova-6.35.131.7-x86

Error message:
06-03 06:22:59.891: I/chromium(1397): [INFO:CONSOLE(0)] "XMLHttpRequest cannot 
load https://accounts.google.com/o/oauth2/token. No 
'Access-Control-Allow-Origin' header is present on the requested resource. 
Origin 'file://' is therefore not allowed access.", source: 
file:///android_asset/www/index.html#/login<file:///\\android_asset\www\index.html#/login>
 (0)

Muly

_______________________________________________
Crosswalk-help mailing list
[email protected]<mailto:[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

Reply via email to