req.header('Origin'); req.header('Host'); // this method can be used to access other request headers like, 'Referer', 'User-Agent' etc.
app.use((req, res, next) => { const host = req.get('host'); const origin = req.get('origin'); });