Quantcast
Channel: Symfony forms returning CSRF token is invalid from AJAX requests - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Bilal Zahid for Symfony forms returning CSRF token is invalid from...

The CSRF token uses, in part, cookies. When you generate two CSRFs on one page and submit one of the forms, you're invalidating the cookie. Without some extensions on the framework itself, I can only...

View Article



Symfony forms returning CSRF token is invalid from AJAX requests

We have a Symfony 4.3 app which has a page which makes multiple AJAX requests. Each AJAX response contains a few forms and each form has its own CSRF token. However, only one of the AJAX calls manages...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images