instance method
sec_fetch_site_value
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
sec_fetch_site_value()
Returns the normalized value of the Sec-Fetch-Site header.
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 696
def sec_fetch_site_value # :doc:
if value = request.headers["Sec-Fetch-Site"]
value.to_s.downcase.presence
end
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 696
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection