johannschopplich / nuxt-api-party

🐬 Securely connect to any API with a server proxy and generated composables
https://nuxt-api-party.byjohann.dev
MIT License
260 stars 10 forks source link

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

Open TO-koswald opened 8 months ago

TO-koswald commented 8 months ago

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:

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

Final checks

voidoath commented 2 months ago

This would be an important improvement.