Every Request From Localhost? #1973
Answered
by
thgh
darrylmorley
asked this question in
Q&A
-
Hi, I've just set up a basic Express API, I'm using Morgan for logs and trying to use a CORS whitelist. The problem is that every request comes from localhost? e.g.:
How can I ensure that the client IP is passed and picked up by the cors middleware? |
Beta Was this translation helpful? Give feedback.
Answered by
thgh
Jan 2, 2024
Replies: 2 comments 1 reply
-
I've implemented a workaround for this so far, but is it possible to receive the origin header? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You may be looking for |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
darrylmorley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may be looking for
app.set('trust proxy', true)