SSL connection in JavaScript

心已入冬 提交于 2020-01-07 02:22:08

问题


Is it possible to establish an SSL connection from a JavaScript? Or directly in Phonegap? I don't find any information about that.


回答1:


Reading behind the lines, it sounds like you're having trouble making a request over SSL with Phonegap. Phonegap does not allow secure requests to a web service that has a self signed cert.




回答2:


Not directly, at least not if you're talking about client-side Javascript (as opposed to something like node.js). However, as the otehr comment noted, HTTPS used SSL as the underlying connection, so if the URL is HTTPS then you're using SSL.



来源:https://stackoverflow.com/questions/8158604/ssl-connection-in-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!