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
| Name | Type | Description |
|---|---|---|
| domain | off | domain expression | regex | Choose inherited-rule cancellation or a Domain match. |
| replacement | domain expression | Required for matching form; changes cookie scope, so review trust boundary. |
Working Example
Example Snippetnginx
proxy_cookie_domain catalog.test edge.test;