Skip to content
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
7 changes: 7 additions & 0 deletions user_guide_src/source/libraries/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ The order of checking the availability of the CSRF token is as follows:

.. note:: ``php://input`` (raw body) is checked since v4.4.2.

.. note::

If you include the CSRF token in a JSON object, removing it decodes and
re-encodes the body. This changes its formatting and may affect number
precision. To keep the JSON body unchanged, send the token in the
``X-CSRF-TOKEN`` header and leave the CSRF field out of the body.

*********************
Other Helpful Methods
*********************
Expand Down