Skip to content

[Security] complete list of support content types #20149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2024
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
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
or ``multipart/form-data``) This is useful for example to prevent the.
or ``multipart/form-data``). This is useful for example to prevent the

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done while merging. Thanks!

: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
Loading