Property Manager Name: Modify Outgoing Response Header
Modify, add, remove, or pass along specific response headers going downstream towards the client.
Depending on the type of action you want to perform, specify the corresponding standard header name, or a customHeaderName if the standard name is set to OTHER. The headerValue serves as a match condition when the action is DELETE or MODIFY, and the newHeaderValue applies when the action is ADD or MODIFY. Whole-text replacements apply when the action is MODIFY, and substitutions apply when set to REGEX.
See also modifyIncomingRequestHeader, modifyIncomingResponseHeader, and modifyOutgoingRequestHeader
Options
- action (enum string): Either ADD or DELETE outgoing HTTP response headers, MODIFY their fixed values, or specify a REGEX pattern to transform them.
- standardAddHeaderName (enum string): If the value of action is ADD, this specifies the name of the field to add, any of the following values:
ACCESS_CONTROL_ALLOW_CREDENTIALS CONTENT_DISPOSITION ACCESS_CONTROL_ALLOW_HEADERS CONTENT_TYPE ACCESS_CONTROL_ALLOW_METHODS EDGE_CONTROL ACCESS_CONTROL_ALLOW_ORIGIN OTHER ACCESS_CONTROL_EXPOSE_HEADERS P3P ACCESS_CONTROL_MAX_AGE PRAGMA CACHE_CONTROL
- standardDeleteHeaderName (enum string): If the value of action is DELETE, this specifies the name of the field to remove, any of the following values:
ACCESS_CONTROL_ALLOW_CREDENTIALS CONTENT_DISPOSITION ACCESS_CONTROL_ALLOW_HEADERS CONTENT_TYPE ACCESS_CONTROL_ALLOW_METHODS EDGE_CONTROL ACCESS_CONTROL_ALLOW_ORIGIN OTHER ACCESS_CONTROL_EXPOSE_HEADERS P3P ACCESS_CONTROL_MAX_AGE PRAGMA CACHE_CONTROL
- standardModifyHeaderName (enum string): If the value of action is MODIFY or REGEX, this specifies the name of the field to modify, any of the following values:
ACCESS_CONTROL_ALLOW_CREDENTIALS CONTENT_DISPOSITION ACCESS_CONTROL_ALLOW_HEADERS CONTENT_TYPE ACCESS_CONTROL_ALLOW_METHODS EDGE_CONTROL ACCESS_CONTROL_ALLOW_ORIGIN OTHER ACCESS_CONTROL_EXPOSE_HEADERS P3P ACCESS_CONTROL_MAX_AGE PRAGMA CACHE_CONTROL
- customHeaderName (string; allows variables): Specifies a custom field name that applies when the relevant standard header name is set to OTHER.
- headerValue (string; allows variables): Specifies the existing value of the header to match.
- newHeaderValue (string; allows variables): With the action set to MODIFY, specifies the new HTTP header replacement value.
- regexHeaderMatch (string): When the action is REGEX, specifies a Perl-compatible regular expression to match within the header value.
- regexHeaderReplace (string; allows variables): When the action is REGEX, specifies text that replaces the regexHeaderMatch pattern within the header value.
- matchMultiple (boolean): When enabled with the action set to REGEX, replaces all occurrences of the matched regular expression, otherwise only the first match if disabled.
- avoidDuplicateHeaders (boolean): When enabled with the action set to MODIFY, prevents creation of more than one instance of a header. The last header clobbers others with the same name. This option affects the entire set of outgoing headers, and is not confined to the subset of regular expression matches.