mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-15 04:14:24 +00:00
Fix session cookie domain isolation
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'].gsub(/^(www\.)/, '')}"
|
||||
else
|
||||
:all
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user