A
A
Aizharik2015-12-20 22:58:45
PHP
Aizharik, 2015-12-20 22:58:45

Phalcon csrf protection for ajax requests?

When using Phalcon's CSRF protection, the key and token is generated for one-time use.
That is, I send 2 ajax requests, then the second one does not pass due to the uselessness of the token. How much will it be correct for an ajax request, if the token is correct, to generate a new one and pass it back as a response, to use other ajax requests? Or how to solve this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question