Syntax
cookie:
name: <string> # required
value: <string> # required
domain: <string>
expires: <string>
httpOnly: <boolean>
maxAge: <number>
path: <string>
sameSite: lax
secure: <boolean>cookie: name: <string> # required value: <string> # required domain: <string> expires: <string> httpOnly: <boolean> maxAge: <number> path: <string> sameSite: lax secure: <boolean>
Attributes
| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| domain | false | - | Sets the cookie domain. | - |
| expires | false | - | Sets the Expires attribute. | - |
| httpOnly | false | false | Sets the HttpOnly flag. | - |
| maxAge | false | -1 | Sets the Max-Age for the cookie. | - |
| name | true | - | Sets the cookie name. | - |
| path | false | "/" | Sets the cookie path. | - |
| sameSite | false | LAX | Sets the SameSite policy. | - |
| secure | false | false | Sets the Secure flag. | - |
| value | true | - | Sets the cookie value. | - |