How do I actually get the origin? When I use the following under router.get('/', ...)
, it just returns undefined.
var origin = req.get('origin');
(I am trying to use the origin domain as a lookup key, to then construct the right URL parameters to post to an API)