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
Post a Comment