Skip to content

update framework csrf configuration #3114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 3, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ Configuration
* `ide`_
* `test`_
* `trusted_proxies`_
* `form`_
* enabled
* `csrf_protection`_
* enabled
* field_name
* field_name (deprecated)
* `form`_
* enabled
* csrf_protection
* enabled
* field_name
* `session`_
* `name`_
* `cookie_lifetime`_
Expand Down Expand Up @@ -452,12 +455,16 @@ Full Default Configuration
test: ~
default_locale: en

csrf_protection:
enabled: false
field_name: _token # Deprecated since 2.4, to be removed in 3.0. Use form.csrf_protection.field_name instead

# form configuration
form:
enabled: false
csrf_protection:
enabled: false
field_name: _token
csrf_protection:
enabled: true
field_name: ~

# esi configuration
esi:
Expand Down