We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ccefc1 commit 9059753Copy full SHA for 9059753
lib/secure_headers/utils/cookies_config.rb
@@ -65,7 +65,7 @@ def validate_samesite_hash_config!
65
66
def validate_hash_or_true_or_opt_out!(attribute)
67
if !(is_hash?(config[attribute]) || is_true_or_opt_out?(config[attribute]))
68
- raise CookiesConfigError.new("#{attribute} cookie config must be a hash or boolean")
+ raise CookiesConfigError.new("#{attribute} cookie config must be a hash, true, or SecureHeaders::OPT_OUT")
69
end
70
71
0 commit comments