instance method
hsts_headers
Ruby on Rails 4.2.9
Since v4.0.13 Last seen in v4.2.9 PrivateSignature
hsts_headers()
Source
# File actionpack/lib/action_dispatch/middleware/ssl.rb, line 48
def hsts_headers
if @hsts
value = "max-age=#{@hsts[:expires].to_i}"
value += "; includeSubDomains" if @hsts[:subdomains]
{ 'Strict-Transport-Security' => value }
else
{}
end
end
Defined in actionpack/lib/action_dispatch/middleware/ssl.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::SSL