Sha256: 4f07dd58ef14e8d55b947cc2c66117fcd1b4d28110ab58cc89a36baa675af7c7
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
module SecureHeadersMocks NONCE = 'lorem-ipsum-nonce' module CSP class << self attr_accessor :config def opt_out? config[:opt_out?] end def [](key) config[key] end end end module SecureHeaders20 end module SecureHeaders30 OPT_OUT = :opt_out class << self def content_security_policy_script_nonce(req) NONCE end end module Configuration module CSPProxy def self.csp return OPT_OUT if CSP.opt_out? CSP.config end end def self.get CSPProxy end end end module SecureHeaders35 class << self def content_security_policy_script_nonce(req) NONCE end end module Configuration module CSPProxy def self.csp CSP end end def self.get CSPProxy end end end module SecureHeaders60 class << self def content_security_policy_script_nonce(req) NONCE end end module Configuration module CSPProxy def self.csp CSP end end def self.dup CSPProxy end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rollbar-2.18.2 | spec/support/secure_headers_mocks.rb |
rollbar-2.18.0 | spec/support/secure_headers_mocks.rb |