SyliusResourceBundle icon indicating copy to clipboard operation
SyliusResourceBundle copied to clipboard

Symfony 6.1 csrf protection

Open dannyvw opened this issue 3 years ago • 0 comments

Sylius version affected: v1.10.0-ALPHA.1

Description

The csrf_protected value is configured, but is triggering the following error

CSRF protection is not enabled in your application. Enable it with the "csrf_protection" key in "config/packages/framework.yaml". triggered in https://github.com/Sylius/SyliusResourceBundle/blob/1.10/src/Bundle/Controller/ControllerTrait.php#L395

Steps to reproduce

Possible Solution
Set service "security.csrf.token_manager" to public in the same way as is done for twig?

dannyvw avatar Aug 23 '22 11:08 dannyvw