HTTP directives

add_header_inherit directive (HTTP)

Contexts: http, server, location. Also permitted in if within location. Default: on. Since 1.29.3. Changes response header inheritance; not available on local 1.26.3.

Formal Syntax & Structure

nginx syntaxnginx
add_header_inherit on | off | merge;

Parameters & Attributes

NameTypeDescription
modeon | off | mergeStandard conditional inheritance, cancel inheritance, or append parent fields. Since 1.29.3; unavailable in local 1.26.3.

Working Example

Example Snippetnginx
add_header_inherit merge;
Nginx Reference