jquery - CSRF token on ajax request -


i have registration form hidden token input. there username field & whenever user input data username field , sends ajax request server & checks if username exists. ajax request sent multiple times.
i know how update token, my question there need update token simple request?is worth updating token every ajax request?
thanks

it depends on framework using. if framework expires token after time have update token.

you can update token after time before gets expired.

and if token not expired there no need update token.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -