We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed81ff5 commit fc24a02Copy full SHA for fc24a02
components/form.rst
@@ -156,6 +156,13 @@ the CSRF generator and validated when binding the form.
156
157
$csrfStorage = new NativeSessionTokenStorage();
158
// ...
159
+
160
+.. tip::
161
+ If you want to disable CSRF on your form, you can give specific options to your form builder through the createBuilder() function:
162
163
+ use Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType
164
165
+ $form = $formFactory->createBuilder(FormType::class, null, ['csrf_protection' => false])
166
167
Twig Templating
168
~~~~~~~~~~~~~~~
0 commit comments