有关“拒绝安全请求"的人行横道错误. [英] Crosswalk Error about "Request was denied for security"

查看:92
本文介绍了有关“拒绝安全请求"的人行横道错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android App中使用cordova 6.3.1和cordova插件2.1.0的人行横道. 我在服务器中使用自我认证. 当我从Cordova应用程序向服务器发送http发布请求时,屏幕底部位置显示请求拒绝安全性"消息,并且http发布请求失败. 我可以使用cordova插件(1.5.0)的旧人行横道发送http发布请求. 你知道有人解决方案吗? ※以下的现场方法无效 http://ivancevich.me/articles/ignoring-无效ssl-certificates-cordova-android-ios/

I use cordova 6.3.1 and crosswalk of cordova plugin 2.1.0 in Android App. I use self certification in server. When I send http post request from cordova app to server, "Request was denied for security" message appeared in screen bottom possion and http post request is fail. I can send http post request using old crosswalk of cordova plugin(1.5.0). Do you know someone solutions. ※Following site method is not work http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/

推荐答案

我也有同样的Toast消息,显示为安全起见,请求被拒绝".对我来说,这也是与证书相关的,但是解决方案出乎意料.我的设备的系统时间关闭了很多时间(将近一年),这导致ssl通信失败.纠正时间为我解决了. (感谢Google帐户页面,该页面在浏览器中也遇到了相同的错误,并对原因进行了很好的说明.)

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.)

这篇关于有关“拒绝安全请求"的人行横道错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆