Quantcast
Channel: Symfony forms returning CSRF token is invalid from AJAX requests - Stack Overflow
Browsing index pages (2 articles)
↧

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


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

Browsing index pages (2 articles)


Latest Images