Passing Header Fields to the Client
To add arbitrary header fields sent by the upstream system to the client response use the set-response-headers
action together with pair producers 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 with
:
PreviousEncoding and Decoding JWTNextHow can I pass an arbitrary header field to an upstream system?
Last updated