Express, obtenha URL completo
var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
Doubtful Dog
var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
const hostWithProtocol = req.protocol + '://' + req.get('host')