Module: ActionHook::Security::Headers
Instance Method Summary collapse
Methods included from Fingerprinting
Instance Method Details
#headers_with_security(configuration) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/actionhook/security/headers.rb', line 8 def headers_with_security(configuration) headers_with_security = headers.dup if digest = fingerprint headers_with_security.merge!(configuration.hash_header_name => digest) end headers_with_security.merge!(authentication.to_h) if authentication headers_with_security end |