Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Ajax with security key

I have forms with the {{ security.getTokenKey() }}

It works fine - The first time

But if the form fails, and tells me that the firstname is incorret and then change it and submit the form again, the TokenKey has refreshed? How do I submit forms with ajax and tokenKey, without having to refresh the whole page?Thanks!

Thank you, that worked!



60.9k

you can mark any answer here as Accept answer so the thread will be solved.

Cheers

Izo's link solves the issue. Thank you!