Skip to content

Commit 748d603

Browse files
authored
Merge pull request #7407 from kenjis/docs-add-note-for-csrf-redirect
docs: add note for CSRF redirect
2 parents ec585bd + 8d8d0e6 commit 748d603

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

user_guide_src/source/libraries/security.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ Redirection on Failure
121121
Since v4.3.0, when a request fails the CSRF validation check,
122122
it will throw a SecurityException by default,
123123

124+
.. note:: In production environment, when you use HTML forms, it is recommended
125+
to enable this redirection for a better user experience.
126+
124127
If you want to make it redirect to the previous page,
125128
change the following config parameter value in
126129
**app/Config/Security.php**:

0 commit comments

Comments
 (0)