Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The security component must be installed to use csrf_token()#8821

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
javiereguiluz wants to merge2 commits intosymfony:4.0fromjaviereguiluz:fix_8816
Closed
Changes fromall 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
14 changes: 10 additions & 4 deletionssecurity/csrf_in_login_form.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,8 +16,14 @@ for CSRF. In this article you'll learn how you can use it in your login form.
Configuring CSRF Protection
---------------------------

First, make sure that the CSRF protection is enabled in the main configuration
file:
First, install the CSRF support in your project (which in turn requires installing
the Symfony Form component):

.. code-block:: terminal

$ composer require security-csrf form

Then, enable the CSRF protection in the framework configuration file:

.. configuration-block::

Expand DownExpand Up@@ -52,8 +58,8 @@ file:
'csrf_protection' => null,
));

Then, thesecurity component needs a CSRF token provider. You can set this to
use thedefault provider available in the security component:
Thesecurity component needs a CSRF token provider. You can set this to use the
default provider available in the security component:

.. configuration-block::

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp