1

I created an admin page using symfony generate-admin and for some reason I'm getting that error when trying to delete a record. Do you know why that field is not being generated?

I found the generated templates in the cache directory and I can see there is a call to $form->isCSRFProtected() to check whether or not to add the _csrf_token field. That function is returning false but I can't find where to change that.

I fixed it temporarily buy disabling the CSRF validation in actions.php. It's not ideal but it works in the meantime.

4

0 回答 0