File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,15 @@ settings is configured.
335335
336336 For more details, see :doc: `/forms `.
337337
338+ .. _reference-form-field-name :
339+
340+ field_name
341+ ..........
342+
343+ **type **: ``string `` **default **: ``_token ``
344+
345+ This is the field name that you should give to the CSRF token field of your forms.
346+
338347.. _reference-framework-csrf-protection :
339348
340349csrf_protection
@@ -357,14 +366,14 @@ can also :ref:`disable CSRF protection on individual forms <form-csrf-customizat
357366.. configuration-block ::
358367
359368 .. code-block :: yaml
360-
369+
361370 # config/packages/framework.yaml
362371 framework :
363372 # ...
364373 csrf_protection : true
365-
374+
366375 .. code-block :: xml
367-
376+
368377 <!-- config/packages/framework.xml -->
369378 <?xml version =" 1.0" encoding =" UTF-8" ?>
370379 <container xmlns =" http://symfony.com/schema/dic/services"
@@ -378,9 +387,9 @@ can also :ref:`disable CSRF protection on individual forms <form-csrf-customizat
378387 <framework : csrf-protection enabled =" true" />
379388 </framework : config >
380389 </container >
381-
390+
382391 .. code-block :: php
383-
392+
384393 // config/packages/framework.php
385394 use Symfony\Config\FrameworkConfig;
386395 return static function (FrameworkConfig $framework) {
You can’t perform that action at this time.
0 commit comments