Passing Header Fields to the Client
PreviousEncoding and Decoding JWTNextHow can I pass an arbitrary header field to an upstream system?
Last updated
Was this helpful?
Last updated
Was this helpful?
To add arbitrary header fields sent by the upstream system to the client response use the together with to copy the wanted header fields of the incoming upstream response ($upstream/<request ID>/headers
). Here we pass Content-Type
and Cache-Control
:
Both expressions can be combined to
which in turn may be shortened using :