Skip to content

Commit

Permalink
Use action_dispatch instead of devise
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidhamilton committed Oct 25, 2023
1 parent 9f4c6bc commit a69f9b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
'X-Robots-Tag' => ('none' unless Rails.application.live?),
}.compact

# Contentful Live-Preview of secured pages
config.action_dispatch.cookies_same_site_protection = :none

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local

Expand Down
5 changes: 1 addition & 4 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,7 @@ def i18n_message(default = nil)

# 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: :none,
secure: true,
}
# config.rememberable_options = {}

# ==> Configuration for :validatable
# Range for password length.
Expand Down

0 comments on commit a69f9b6

Please sign in to comment.