module TCellAgent::CsrfExceptionReporter
Public Instance Methods
handle_unverified_request()
click to toggle source
Calls superclass method
# File lib/tcell_agent/rails/csrf_exception.rb, line 5 def handle_unverified_request TCellAgent::Instrumentation.safe_block('AppSensor CSRF Exception processing') do appfirewall_policy = TCellAgent.policy(TCellAgent::PolicyTypes::APPSENSOR) if appfirewall_policy.enabled tcell_data = request.env[TCellAgent::Instrumentation::TCELL_ID] if tcell_data tcell_data.csrf_exception_name = 'ActionController::InvalidAuthenticityToken' end end end super if defined?(super) end