Fix session cookie domain isolation

This commit is contained in:
AwsAqh
2026-02-27 00:10:36 +02:00
committed by Ahmed Ejaz
parent 7fe4717077
commit 4cc2390e6d

View File

@@ -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