class Rails::ApplicationController

:nodoc:

def disable_content_security_policy_nonce!

def disable_content_security_policy_nonce!
  request.content_security_policy_nonce_generator = nil
end

def local_request?

def local_request?
  Rails.application.config.consider_all_requests_local || request.local?
end

def require_local!

def require_local!
  unless local_request?
    render html: "<p>For security purposes, this information is only available to local requests.</p>".html_safe, status: :forbidden
  end
end