rejectUnauthorized
which bypasses certifcate errorsrejectUnauthorized
flag usually solves all problems related to self-signed, expired or other kind of invalid certificatesHi @marsbaa,
With 2FA it's possible authenticating using:
const credentialOptions = { username: '', password: '' };
const spr = sprequest.create(credentialOptions);
spr.get('http://mysites/User%20Photos/Profile%20Pictures/nhayman_LThumb.jpg').then(function (response) {
return response.body;
});
/_api/Web/GetFileByServerRelativeUrl(@FileServerRelativeUrl)/$value
sp-request
lib and return the raw image data?http://mysites/_api/web/GetFolderByServerRelativeUrl('/User%20Photos/Profile%20Pictures')/Files('nhayman_LThumb.jpg')/$value