Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the cookie secure flag by default #641

Open
ejaronne opened this issue Oct 9, 2024 · 1 comment
Open

Set the cookie secure flag by default #641

ejaronne opened this issue Oct 9, 2024 · 1 comment

Comments

@ejaronne
Copy link

ejaronne commented Oct 9, 2024

using the Ruby on Rails Framework options

@vanessuniq
Copy link
Contributor

Just checked, Vulcan uses the Devise’s rememberable module. Setting the secure flag and http only can be done by updating the devise config config/initializers/devise.rb, setting the the secure attribute for the cookie as follow:

config.rememberable_options = { secure: true, httponly: true }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants