Answer the question
In order to leave comments, you need to log in
Why doesn't disabling csrf_protection via config in Symfony work?
For acceptance tests, you need to disable csrf protection at the site level (not through the container, as you can do in unit tests).
The official documentation says that this can be done.
So, I specify in codeception.yml:
params:
- .env.test.local
APP_ENV=test
framework:
test: true
session:
storage_id: session.storage.mock_file
csrf_protection:
enabled: false
The CSRF token is invalid. Please try to resubmit the form.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question