Skip to content

Commit 06a7536

Browse files
authored
Merge pull request #23631 from kbrock/CP4AIOPS-446
Add SameSite=Strict for cookies
2 parents 62180d4 + 80da72a commit 06a7536

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/manageiq/session/abstract_store_adapter.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ module ManageIQ
22
module Session
33
class AbstractStoreAdapter
44
def session_options
5-
session_options = {}
5+
session_options = {:same_site => :strict}
66

77
if MiqEnvironment::Command.is_appliance?
88
session_options[:secure] = true unless ENV["ALLOW_INSECURE_SESSION"]
99
session_options[:httponly] = true
10-
session_options[:same_site] = true
1110
end
1211

1312
session_options

0 commit comments

Comments
 (0)