Can we change CSRF token per-form request or even per-request instead of same token for one active session?
Assuming that you have access to the request
object:
from django.middleware.csrf import rotate_token
rotate_token(request)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With