PoweredLocal / vrata

API gateway implemented in PHP and Lumen
MIT License
471 stars 116 forks source link

Custom header forwarding #24

Open witschko opened 5 years ago

witschko commented 5 years ago

Hi!

I was just wondering if it is somehow possible to forward custom headers that come with the original request to the final microservice?

Best, Philipp

dusterio commented 5 years ago

Forwarding all headers by default could be a bit unsafe, but maybe there should be a config setting - a white list of headers that should be forwarded?

witschko commented 5 years ago

A whitelist would be great since we only need certain headers to be forwarded.

witschko commented 5 years ago

How would that work? A JSON environment variable?

witschko commented 4 years ago

Is there any news on merging the PR?