mirror of
https://github.com/heartcombo/devise.git
synced 2026-02-04 03:25:17 -05:00
rememberable cookie now is httponly by default
This commit is contained in:
@@ -18,11 +18,14 @@ module Devise
|
||||
|
||||
def cookie_values(resource)
|
||||
options = Rails.configuration.session_options.slice(:path, :domain, :secure)
|
||||
options[:httponly] = true
|
||||
|
||||
options.merge!(resource.cookie_options)
|
||||
options.merge!(
|
||||
:value => resource.class.serialize_into_cookie(resource),
|
||||
:expires => resource.remember_expires_at
|
||||
)
|
||||
|
||||
options
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user