In express 4.x:
req.get('Referrer')
This will also check both spellings of referrer so you do not have to do:
req.headers.referrer || req.headers.referer
Here is the documentation
In express 4.x:
req.get('Referrer')
This will also check both spellings of referrer so you do not have to do:
req.headers.referrer || req.headers.referer
Here is the documentation