johannschopplich / nuxt-api-party

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

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

Open TO-koswald opened 7 months ago

TO-koswald commented 7 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 4 weeks ago

This would be an important improvement.