Skip to content

Commit

Permalink
complete list of support content types
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Aug 22, 2024
1 parent fbc0139 commit 301087b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ form_only
**type**: ``boolean`` **default**: ``false``

Set this option to ``true`` to require that the login data is sent using a form
(it checks that the request content-type is ``application/x-www-form-urlencoded``).
This is useful for example to prevent the :ref:`form login authenticator <security-form-login>`
from responding to requests that should be handled by the
:ref:`JSON login authenticator <security-json-login>`.
(it checks that the request content-type is ``application/x-www-form-urlencoded``
or ``multipart/form-data``) This is useful for example to prevent the.
:ref:`form login authenticator <security-form-login>` from responding to
requests that should be handled by the :ref:`JSON login authenticator <security-json-login>`.

.. versionadded:: 5.4

Expand Down

0 comments on commit 301087b

Please sign in to comment.