I have TOML file, is there a way to copy dynamically the 'X-Forwarded-For' to a customeRequestHeaders(eg: X-Script-Name) in the middleware before pushing it to the application. Application would use this customer header.
How to copy X-Forwarded-For to customRequestHeaders(X-Script-Name) that need to be used by application
If your plan is to rename the header from
X-Script-Name, you can use this plugin : GitHub - tomMoulard/htransformation: A Traefik plugin to change on the fly header's value of a request
With this plugin, you can rename a header key.
Hope it helps
Hi @tommoulard ,
Thanks for the pointers! I need to copy X-Forwarded as I need both the headers.