You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/provider/cookieProvider.md
+22-25Lines changed: 22 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,37 +18,34 @@ created, updated, or removed using the `$cookie` service.
18
18
19
19
#### $cookieProvider.defaults
20
20
21
-
The [defaults](../../../typedoc/classes/CookieProvider.html#defaults) property
22
-
defines global cookie settings. These values are applied to the `$cookie`
23
-
service at initialization, and every cookie created through `$cookie.put()` or
24
-
`$cookie.putObject()` will automatically inherit these defaults, unless
25
-
overridden per-cookie.
21
+
The [defaults](../../../typedoc/classes/CookieProvider.html#defaults) property defines global cookie settings. These values are applied to the
22
+
`$cookie` service at initialization, and every cookie created through `$cookie.put()` or `$cookie.putObject()` will automatically inherit these defaults,
|**path**|`string`| URL path the cookie belongs to. Defaults to the current path. Commonly set to `'/'` to make cookies accessible across the entire site. |
31
+
|**domain**|`string`| The domain the cookie is visible to. Useful for subdomains (e.g., `.example.com`). |
32
+
|**expires**|`Date`| Expiration date. If omitted, the cookie becomes a _session cookie_ (deleted on browser close). |
33
+
|**secure**|`boolean`| If `true`, the cookie is only sent over HTTPS. |
34
+
|**samesite**|`"Strict" \| "Lax" \| "None"`| Controls cross-site cookie behavior. Required when `secure: true` and cross-site use is intended. |
35
+
|**httponly**|_Not supported._| Browser JS cannot set `HttpOnly` cookies. This must be done on the server. |
0 commit comments