Skip to content

Commit 3ad1040

Browse files
committed
refine
1 parent 52e4a07 commit 3ad1040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/classic-ui/csrf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ If the token is missing or invalid, the request is rejected.
2626
## Auto protection
2727

2828
In Plone, CSRF protection is done almost transparently by [plone.protect](https://pypi.org/project/plone.protect/).
29-
One important aspect of `plone.protect` is that it performs the CSRF protection check on the database transaction commit, rather than at the beginning of the request.
29+
One important aspect of `plone.protect` is that it performs the CSRF token validation at the database transaction commit time (at the end of the request), rather than at the beginning of the request.
3030
This means that the view can execute and make changes to the database, but the changes will not be persisted unless a valid CSRF token is present in the request.
3131

32-
When a logged-in user requests a page, Plone automatically includes the auth token in all forms through the application of a transform for the `plone.transformchain` that adds a hidden field with the token.
32+
When a logged-in user requests a page, Plone automatically includes the CSRF token in all forms by applying a transform (using `plone.transformchain`) that adds a hidden field with the token.
3333
This includes, but is not limited to the following:
3434

3535
- add and edit forms

0 commit comments

Comments
 (0)