SSL connection in JavaScript

2019-08-21 02:26发布

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

2条回答
看我几分像从前
2楼-- · 2019-08-21 03:08

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.

查看更多
来,给爷笑一个
3楼-- · 2019-08-21 03:24

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.

查看更多
登录 后发表回答