nuxt-api-party icon indicating copy to clipboard operation
nuxt-api-party copied to clipboard

Pass-through client request headers / set X-Forwarded for

Open TO-koswald opened this issue 1 year ago • 1 comments

Describe the feature

There should be an option similiar to how it's done for the response headers in #44 to pass client request headers to the server.

Use case:

  • User-Agent / Client IP (X-FORWARED-FOR header)

Right now our main api receives User-Agent: node and the ip-address of the node server.

Right now to achieve this, we need to create a custom route and proxy them ourselves. We cannot set client: true ,because this would expose an Authorization header that we set.

Additional information

  • [ ] Would you be willing to help implement this feature?
  • [ ] Can you think of other implementations of this feature?

Final checks

TO-koswald avatar Feb 23 '24 16:02 TO-koswald

This would be an important improvement.

voidoath avatar Sep 13 '24 06:09 voidoath