Every Request From Localhost? #1973
-
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.
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.
-
You may be looking for |
Beta Was this translation helpful? Give feedback.
You may be looking for
app.set('trust proxy', true)