[Node.js] Getting Host Name in Express.js
I’ll introduce how to get the host name in Express.js (Node.js).
You can check the host name from the HTTP request headers.
request.headers.host
This is not specifically limited to Express.js.
That’s all from the Gemba.