Skip to content

Commit 9059753

Browse files
committed
Update secure cookie error message when providing 'false'
Fixes #393
1 parent 9ccefc1 commit 9059753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/secure_headers/utils/cookies_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def validate_samesite_hash_config!
6565

6666
def validate_hash_or_true_or_opt_out!(attribute)
6767
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")
68+
raise CookiesConfigError.new("#{attribute} cookie config must be a hash, true, or SecureHeaders::OPT_OUT")
6969
end
7070
end
7171

0 commit comments

Comments
 (0)