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 unless @skip_content_security_policy (@content_security_policy || roda_class.opts[:content_security_policy]).set_header(headers) end end
def skip_content_security_policy!
def skip_content_security_policy! @skip_content_security_policy = true end