0
0
Fork 0

Disable Same-Site cookie implementation to fix SSO issues on WebKit browsers (#9819)

This commit is contained in:
Moritz Heiber 2019-01-15 23:11:46 +01:00 committed by Eugen Rochko
parent a12f6d10cc
commit ecf40d09ed
3 changed files with 1 additions and 4 deletions

View file

@ -10,7 +10,6 @@ Warden::Manager.after_set_user except: :fetch do |user, warden|
expires: 1.year.from_now,
httponly: true,
secure: (Rails.env.production? || ENV['LOCAL_HTTPS'] == 'true'),
same_site: :lax,
}
end
@ -21,7 +20,6 @@ Warden::Manager.after_fetch do |user, warden|
expires: 1.year.from_now,
httponly: true,
secure: (Rails.env.production? || ENV['LOCAL_HTTPS'] == 'true'),
same_site: :lax,
}
else
warden.logout