android – Crosswalk Error about Request was denied for security

android – Crosswalk Error about Request was denied for security

I had the same Toast message displaying Request was denied for security. For me it was also certificate related but the solution was unexpected. The system time of my device was off by quite a bit (almost a year) and this caused the ssl communication to fail. Correcting the time solved it for me. (Thanks to the Google accounts page, which also encountered the same error in the browser and gave a very nice explanation about the reason.)

I solved this by adding the last 3 lines of the following snippet to config.xml:

<access origin=* />
<allow-intent href=http://*/* />
<allow-intent href=https://*/* />
<allow-intent href=tel:* />
<allow-intent href=sms:* />
<allow-intent href=mailto:* />
<allow-intent href=geo:* />
<allow-navigation href=http://*/* />
<allow-navigation href=https://*/* />
<allow-navigation href=data:* />

android – Crosswalk Error about Request was denied for security

I was facing the same problem. Try to remove the meta tag for CSP (Content Security Policy), and add the lines below in config.xml:

<access origin=* />
<allow-intent href=* />
<allow-navigation href=* />

Also, I have installed the cordova-plugin-whitelist and the crosswalk-lite.
Run cordova clean before build your android app.

I hope it helps!

— EDIT —

The above solution only worked in debug mode for me.
So, I found a work around using cordova-plugin-crosswalk-certificate with Crosswalk version 18+!

Leave a Reply

Your email address will not be published.