想学下next.js
, 在请求数据的时候用cnode
的api
接口,结果发现报错
unable to verify the first certificate
Error: unable to verify the first certificate
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:610:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
把接口换成http
的又可以
请问,如何请求https
的接口