File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,6 +120,22 @@ than simply crashing. This can be turned off by editing the following config par
120120
121121Even when the redirect value is **true **, AJAX calls will not redirect, but will throw an error.
122122
123+ =======================
124+ CSRF Protection Methods
125+ =======================
126+
127+ By default, the Cookie based CSRF Protection is used. It is
128+ `Double Submit Cookie <https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#double-submit-cookie >`_
129+ on OWASP Cross-Site Request Forgery Prevention Cheat Sheet.
130+
131+ You can also use Session based CSRF Protection. It is
132+ `Synchronizer Token Pattern <https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#synchronizer-token-pattern >`_.
133+
134+ You can set to use the Session based CSRF protection by editing the following config parameter value in
135+ **app/Config/Security.php **::
136+
137+ public $csrfProtection = 'session';
138+
123139*********************
124140Other Helpful Methods
125141*********************
You can’t perform that action at this time.
0 commit comments