Category: csrf

CSRF token is always invalid on localhost – Symfony 4 forms

My form can never validate on localhost unless I deactivate my csrf field on localhost. It works perfectly fine on prod. I was thinking it could come from my config: router.request_context.host: ‘localhost:8000’ router.request_context.scheme: ‘http’ But despite my numerous tries, I…