Skip to content

Commit

Permalink
Merge pull request #16854 from bdunne/allow_insecure_session
Browse files Browse the repository at this point in the history
When using http only, set env variable to allow insecure sessions
  • Loading branch information
carbonin authored Jan 19, 2018
2 parents f5f9a83 + c6df0a4 commit 46d2a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

session_options = {}
if MiqEnvironment::Command.is_appliance?
session_options[:secure] = true unless MiqEnvironment::Command.is_container?
session_options[:secure] = true unless ENV["ALLOW_INSECURE_SESSION"]
session_options[:httponly] = true
end

Expand Down

0 comments on commit 46d2a63

Please sign in to comment.