Categories
JavaScript Answers

How to find the a referring sites URL in Node?

Spread the love

To find the a referring sites URL in Node, we call the req.headers.referer property.

For instance, we write

const referrer = req.headers.referer;

to get the referrer with the req.headers.referer property.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *