instance method
commit_csrf_token
Ruby on Rails 8.0.4
Since v7.1.6Signature
commit_csrf_token(request)
No documentation comment.
Parameters
-
requestreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 376
def commit_csrf_token(request) # :doc:
csrf_token = request.env[CSRF_TOKEN]
csrf_token_storage_strategy.store(request, csrf_token) unless csrf_token.nil?
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 376
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection