Skip to content

Commit 004620e

Browse files
committed
Minor tweaks
1 parent 8c3c3d6 commit 004620e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

security/csrf.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,12 @@ array, the attribute is ignored for that request, and no CSRF validation occurs:
321321
// ... delete the object
322322
}
323323

324-
You can also choose where the CSRF token is read from using the ``tokenSource`` parameter
325-
This is a bitfield allowing you to combine these sources:
324+
You can also choose where the CSRF token is read from using the ``tokenSource``
325+
parameter. This is a bitfield that allows you to combine different sources:
326326

327327
* ``IsCsrfTokenValid::SOURCE_PAYLOAD`` (default): request payload (POST body / json)
328328
* ``IsCsrfTokenValid::SOURCE_QUERY``: query string
329-
* ``IsCsrfTokenValid::SOURCE_HEADER``: request headers
329+
* ``IsCsrfTokenValid::SOURCE_HEADER``: request header
330330

331331
Example::
332332

@@ -340,7 +340,7 @@ Example::
340340
// ... delete the object
341341
}
342342

343-
The token will be checked in each selected source, and validation fails if none match.
343+
The token is checked against each selected source, and validation fails if none match.
344344

345345
.. versionadded:: 7.1
346346

0 commit comments

Comments
 (0)