instance method
reset_csrf_token
Ruby on Rails 7.2.3
Since v7.1.6Signature
reset_csrf_token(request)
No documentation comment.
Parameters
-
requestreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 371
def reset_csrf_token(request) # :doc:
request.env.delete(CSRF_TOKEN)
csrf_token_storage_strategy.reset(request)
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 371
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection