Document `config.action_dispatch.always_write_cookie`

This commit is contained in:
Alex 2024-07-23 15:23:39 +10:00 committed by Hartley McGuire
parent e0a9ef12b3
commit 2dcfca850b
No known key found for this signature in database
GPG Key ID: E823FC1403858A82
1 changed files with 7 additions and 0 deletions

View File

@ -2130,6 +2130,13 @@ If set to `false`, when both headers are present, both headers are checked and b
| (original) | `false` |
| 8.0 | `true` |
#### `config.action_dispatch.always_write_cookie`
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.
If set to `true`, cookies will be written even if this criteria is not met.
This defaults to `true` in `development`, and `false` in all other environments.
#### `ActionDispatch::Callbacks.before`