SecureHeaders v2.2.0 Release Notes
Release Date: 2015-06-18 // almost 9 years ago-
https://github.com/twitter/secureheaders/pull/148
👍 Facilitates better per-request config:
:enforce => lambda { |controller| controller.current_user.beta_testing? }
NOTE if you used
lambda
config values, this will raise an exception until you add the controller reference:bad:
lambda { true }
good:
lambda { |controller| true }
proc { true }
proc { |controller| true }