wix-fetch get with basic authorization

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?