Timeline for How do I get the domain originating the request in express.js?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 15, 2023 at 22:02 | comment | added | Luis | "Contains the hostname derived from the Host HTTP header", and " The Host request header specifies the host and port number of the server to which the request is being sent"... So this is not the origin... | |
| Sep 21, 2022 at 2:14 | comment | added | Pencilcheck | this returns the hostname of the server that is hosting the code, not the originating..... | |
| Jul 4, 2019 at 8:14 | comment | added | Paul T. Rawkeen | This returns hostname of the server you are receiving request on. It will work only if you are running your API and website on the same server and originating and receiving party is the same host. | |
| S May 2, 2019 at 0:26 | history | suggested | Jake | CC BY-SA 4.0 |
req.hostname is additional but is not more or less preferred than req.get()
|
| May 1, 2019 at 21:04 | review | Suggested edits | |||
| S May 2, 2019 at 0:26 | |||||
| Jan 29, 2019 at 16:29 | history | answered | DiegoRBaquero | CC BY-SA 4.0 |