module Roda::RodaPlugins::ContentSecurityPolicy::ResponseMethods
def content_security_policy
def content_security_policy @content_security_policy ||= roda_class.opts[:content_security_policy].dup end
def initialize
def initialize super @content_security_policy &&= nil end
def set_default_headers
def set_default_headers super (@content_security_policy || roda_class.opts[:content_security_policy]).set_header(headers) end