-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
Milestone
Description
csrf token has an expiry time. let us assume its 5 minutes. And after loading a page, user did spend 5 minutes somewhere else before making another request.
Now when user makes a request, say he submits a form, the js code fetches the token from cookie before submitting the form. So what need to be done in this case?
Possible solutions:
- issue a quick xhr request to request for token refresh
- let the request proceed without a token and let ir fail ???