Почему не работает настройка csrf_protection в config Symfony? - PullRequest
0 голосов
/ 04 марта 2020

csrf_protection в документации: https://symfony.com/doc/current/reference/configuration/framework.html#csrf -защита

Имею в codeception.yml:

params:
- .env.test.local

В .env.test.local:

APP_ENV=test

В config / packages / test / framework.yaml:

framework:
    test: true
    session:
        storage_id: session.storage.mock_file
    csrf_protection:
        enabled: false

Запустите «Codecept run accept» и увидите ошибку:

The CSRF token is invalid. Please try to resubmit the form.

Почему?

...