Response Headers

server/response_headers[]

This entry can be used to set HTTP headers which are always present in all responses which are returned to clients.
For each entry, only one of macro, attribute or text can be specified.

Properties

NameTypeConstraintsDescription
headerstringThe name of the HTTP header to be included in the response.
macrostringThe name of the macro which the value will be taken from.
Valid macro values are:

- TAM_OP
- ERROR_CODE
- ERROR_TEXT
- ERROR_URL
- USERNAME
attributestringThe name of a credential attribute which the value will be taken from.
textstringString content which will be inserted into the header verbatim.

Example

server:
  response_headers:
    - header:    X-Client-ID
      macro:     USER
    - header:    X-Client-Apparent-IP
      attribute: AZN_CRED_NETWORK_ADDRESS_STR
    - header:    X-IBM-Environment
      text:      staging