HTTP directives

proxy_cookie_domain directive (HTTP)

Contexts: http, server, location. Default: off. Available since 1.1.15. Changes a matching Domain attribute in an upstream Set-Cookie field.

Formal Syntax & Structure

nginx syntaxnginx
proxy_cookie_domain off | domain replacement;

Parameters & Attributes

NameTypeDescription
domainoff | domain expression | regexChoose inherited-rule cancellation or a Domain match.
replacementdomain expressionRequired for matching form; changes cookie scope, so review trust boundary.

Working Example

Example Snippetnginx
proxy_cookie_domain catalog.test edge.test;
Nginx Reference