var auth = `${host.user}:${host.pass}`
const buf = Buffer.from(auth, 'ascii');
strauth = buf.toString('base64');
console.info(buf.toString('base64'));
rejectUnauthorized: false,
headers: { 'Authorization': 'Basic ' + strauth ,'}
headers Authorization
最新推荐文章于 2024-03-20 15:07:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)