Skip to content

Commit

Permalink
Merge pull request #3296 from manyfold3d/fix-redirection-after-links
Browse files Browse the repository at this point in the history
Use SameSite=Lax cookies to allow auto-login after linking
  • Loading branch information
Floppy authored Dec 10, 2024
2 parents 471c88f + f617b78 commit 89dbab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
# Options to be passed to the created cookie. For instance, you can set
# secure: true in order to force SSL only cookies.
config.rememberable_options = {
same_site: :strict,
same_site: :lax,
secure: Rails.application.config.force_ssl
}

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/session_storage.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Rails.application.config.session_store :cookie_store,
expire_after: 14.days,
key: "_manyfold_session",
same_site: :strict,
same_site: :lax,
secure: Rails.application.config.force_ssl

0 comments on commit 89dbab3

Please sign in to comment.