instance method
real_csrf_token
Ruby on Rails 7.2.3
Since v5.2.8.1 PrivateSignature
real_csrf_token(_session = nil)
No documentation comment.
Parameters
-
_sessionopt = nil
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 568
def real_csrf_token(_session = nil) # :doc:
csrf_token = request.env.fetch(CSRF_TOKEN) do
request.env[CSRF_TOKEN] = csrf_token_storage_strategy.fetch(request) || generate_csrf_token
end
decode_csrf_token(csrf_token)
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 568
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection