From 486808eae00b0e4a6fc051a47823c75398385202 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 10 Mar 2021 18:53:20 +0100 Subject: [PATCH] Add mnemosyne tracing for render_csrf_error --- app/controllers/application_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 77253efe..55cb96f0 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -38,6 +38,7 @@ class ApplicationController < ActionController::Base private :set_sentry_context def render_csrf_error + set_sentry_context render json: {error: 'CSRF validation failed!!', status: :unprocessable_entity, request_cookies: cookies, session_csrf: session['_csrf_token'], request_csrf: request_authenticity_tokens }, status: :unprocessable_entity end private :render_csrf_error