6. Header Forwarding

Last updated: 1 minute read.

Min Version: Tyk v3.2.0

You’re able to configure upstream Headers dynamically, that is, you’re able to inject Headers from the client request into UDG upstream requests. For example, it can be used to access protected upstreams.

The syntax for this is straight forward:

{{.request.headers.someheader}}

In your data sources, define your new Header name and then declare which request header’s value to use:

Forwarding Headers

That’s it!

Note

A JSON string has to be escaped before using as a header value. For example:

{\"hello\":\"world\"}