Skip to content

inway: Add X-NLX-Requester-Organization header to forwarded requests

Geert-Johan Riemer requested to merge feature/inway-requester-header into master

The echo service that is set up by default in the docker-compose stack nicely shows the header:

$ curl "http://localhost:12018/DemoProviderOrganization/PostmanEcho/get?foo=1"
{"args":{"foo":"1"},"headers":{"host":"localhost","accept":"*/*","accept-encoding":"gzip","user-agent":"curl/7.55.1","x-nlx-requester-organization":"DemoRequesterOrganization","x-forwarded-port":"443","x-forwarded-proto":"https"},"url":"https://localhost/get?foo=1"}

excerpt: "x-nlx-requester-organization":"DemoRequesterOrganization" (the lowercasing of the header is performed by the echo service)

fixes #87 (closed)

Merge request reports