msabic22
msabic22

Reputation: 363

Can you get requests origin full path with node + express

I'm using node with express for my server. Is it possible to read full origin URL path of requests coming in.

Example:

Client is making a GET request from a page www.client-domain.com/animals to www.server-domain.com/dog

I want to log /animals on the server

Upvotes: 0

Views: 604

Answers (1)

Heiko Theißen
Heiko Theißen

Reputation: 17532

As per its definition, the origin does not contain the path. Are you looking for the referrer? But this is not included in XMLHttpRequests and may also be suppressed in navigation requests.

Upvotes: 1

Related Questions