Crosswalk error regarding "Request was rejected for security"

I am using cordova 6.3.1 and the crossroads of the cordova 2.1.0 plugin in an android application. I use self-certification on the server. When I send an HTTP request from cordova to the server, the message โ€œRequest was rejected for securityโ€ appeared at the bottom of the screen, and the HTTP request did not work. I can send an email request using the old cordova plugin junction (1.5.0). You know some solutions. โ€ป the following site method does not work http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/

+8
android ssl cordova crosswalk
source share
5 answers

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:*" /> 
+1
source share

I had the same Toast message which was rejected for security. It was also a certificate for me, but the solution was unexpected. The system time of my device was turned off quite a bit (almost a year), and this led to a failure of the ssl connection. Correcting time by deciding this for me. (Thanks to the Google Accounts page, which also found the same error in the browser and gave a very good explanation of the reason.)

+1
source share

I had the same problem. Try removing the meta tag. for CSP (Content Security Policy) and add the lines below to config.xml :

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

In addition, I installed cordova-plugin-whitelist and crosswalk-lite. Run cordova clean before creating an Android app.

Hope this helps!

--- EDIT ---

The above solution only works in debug mode. So, I found a job using cordova-plugin-crosswalk-certificate using Crosswalk version 18+!

+1
source share

I had the wrong URL (user domain) with a spelling error, and you can also check if the ssl certificate is valid, it gives an error when your ssl certificate has expired.

0
source share

If none of the other answers work, check the date / time and time zone

0
source share

All Articles