class Rails::Application::Configuration

def content_security_policy(&block)

Configures the ActionDispatch::ContentSecurityPolicy.
def content_security_policy(&block)
  if block_given?
    @content_security_policy = ActionDispatch::ContentSecurityPolicy.new(&block)
  else
    @content_security_policy
  end
end