instance method
store
Ruby on Rails 8.1.2
Since v7.1.6Signature
store(request, csrf_token)
No documentation comment.
Parameters
-
requestreq -
csrf_tokenreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 357
def store(request, csrf_token)
request.cookie_jar.encrypted.permanent[@cookie_name] = {
value: {
token: csrf_token,
session_id: request.session.id,
}.to_json,
httponly: true,
same_site: :lax,
}
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 357
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection::CookieStore