Skip to content

Commit 2dcfca8

Browse files
ghiculescuskipkayhil
authored andcommitted
Document config.action_dispatch.always_write_cookie
1 parent e0a9ef1 commit 2dcfca8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

guides/source/configuring.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,6 +2130,13 @@ If set to `false`, when both headers are present, both headers are checked and b
21302130
| (original) | `false` |
21312131
| 8.0 | `true` |
21322132

2133+
#### `config.action_dispatch.always_write_cookie`
2134+
2135+
Cookies will be written at the end of a request if they marked as insecure, if the request is made over SSL, or if the request is made to an onion service.
2136+
2137+
If set to `true`, cookies will be written even if this criteria is not met.
2138+
2139+
This defaults to `true` in `development`, and `false` in all other environments.
21332140

21342141
#### `ActionDispatch::Callbacks.before`
21352142

0 commit comments

Comments
 (0)