I have a Symfony 3.4 app that used to work well on my last hosting (apache) But I have changed the hosting, and I am now using Nginx on Debian, using the nginx config given by Symfony here : https://symfony.com/doc/3.4/setup/web_server_configuration.html#nginx
I try to make my Symfony app work on the new hosting, but I have a form error. When validating, I have a "Invalid CSRF token". I have checked the php session folder that remains empty (normal ??). I try to chmod it 777, but same problem. (I am sure of the location of the php session, as I found it using phpinfo()). I also tried to chown and chgrp to www-data on this directory...
My app is accessible with HTTPS.
Any idea on how to find the pb ??
Thanks a lot !