0%

NodeJS unable to verify the first certificate 解决方案

问题

使用 NodeJS 发起请求时,报错:

1
Error: unable to verify the first certificate

解决方案

1
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';