diff --git a/lib/site-inspector/headers.rb b/lib/site-inspector/headers.rb index c20d82f..00c20e8 100644 --- a/lib/site-inspector/headers.rb +++ b/lib/site-inspector/headers.rb @@ -49,7 +49,7 @@ def secure_cookies? return nil if !has_cookies? cookie = headers["set-cookie"] cookie = cookie.first if cookie.is_a?(Array) - !!(cookie =~ /; (secure|httponly)/i) + !!(cookie =~ /(; secure.*; httponly|; httponly.*; secure)/i) end # Returns an array of hashes of downcased key/value header pairs (or nil)