http-rsp-header

Syntax

http-rsp-header = header-name:macro

Description

Inserts custom headers whenever WebSEAL returns a custom response to the client.

Options

header-name
The name of the header that holds the value.
macro
That type of value to be inserted. This parameter can be one of the following values:
  • TAM_OP
  • AUTHNLEVEL
  • ERROR_CODE
  • ERROR_TEXT
  • CREDATTR{<name>}, where <name> is the name of the credential attribute.
  • USERNAME
  • TEXT{<value>}, where <value> is the static header to include in the response header.

Usage

This stanza entry is optional.
Note: You can specify this entry multiple times to include multiple headers in the response.

Default value

None.

Example

The following example inserts the Security Access Manager error code in a response header named tam-error-code:

http-rsp-header = tam-error-code:ERROR_CODE

The following example includes a static header DENY in a response header named X-Frame-Options:

http-rsp-header = x-frame-options:TEXT{DENY}