mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-15 04:14:24 +00:00
Merge pull request #13975 from AwsAqh/fix/session-cookie-domain-13974
Fix shared login sessions between staging and production
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# (create the session table with "rails generate session_migration")
|
||||
|
||||
domain = if Rails.env.staging? || Rails.env.production?
|
||||
".#{ENV['SITE_URL'].gsub(/^(www\.)|^(app\.)|^(staging\.)|^(stg\.)/, '')}"
|
||||
ENV['SITE_URL']
|
||||
else
|
||||
:all
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user