Try:
//
"Authorization": 'Basic ' + Buffer.from(username + ":" + password, 'utf-8').toString('base64'),
//
- Get rid of the trailing comma in the headers (although it’s not supposed to be a problem).
Does it work?
Try:
//
"Authorization": 'Basic ' + Buffer.from(username + ":" + password, 'utf-8').toString('base64'),
//
Does it work?