Node.js HTTPS 400 Error - 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'

后端 未结 5 2774
孤独总比滥情好
孤独总比滥情好 2021-02-20 17:56

I\'m writing a Node.js app that has to request some data from one of our internal APIs. The tricky part is that the server I\'m requesting data from has certain limitations:

5条回答
  •  长发绾君心
    2021-02-20 18:31

    Set this process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'; Fixed the UNABLE_TO_VERIFY_LEAF_SIGNATURE problem for superagent.

提交回复
热议问题