[英]Cordova Android 6.2.1 + Crosswalk 23 => SSL error: net::ERR_INSECURE_RESPONSE
I'm trying to make XmlHttpRequest to a REST API exposed through https with a certificate signed by letsencrypt . 我正在尝试将XmlHttpRequest设置为使用letencrypt签名的证书通过https公开的REST API。
On Android, those requests fail and I get a net::ERR_INSECURE_RESPONSE
error. 在Android上,这些请求失败,并且出现net::ERR_INSECURE_RESPONSE
错误。
It seems it fails both with and without Crosswalk. 似乎无论有没有Crosswalk,它都会失败。
I've tried to comment the onReceivedSslError
code in both org.apache.cordova.engine.SystemWebViewClient
and org.crosswalk.engine.XWalkCordovaResourceClient
but it still fails with the same error :(. 我已经尝试在org.apache.cordova.engine.SystemWebViewClient
和org.crosswalk.engine.XWalkCordovaResourceClient
中都注释了onReceivedSslError
代码,但是它仍然失败,并显示相同的错误:(。
Is it the CA that is not recognized? 是未被认可的CA? How can I fix this? 我怎样才能解决这个问题?
好的,问题只是我的Android设备的日期和时间设置错误...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.