diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index 5495cf8d0c1..a7996894b7c 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -16,6 +16,12 @@ class DashboardController < ApplicationController external_authenticate kerberos_authenticate saml_login oidc_login] after_action :cleanup_action, :except => %i[csp_report] + after_action :skip_session_write + + def skip_session_write + request.session_options[:skip] = %w[widget_chart_data widget_report_data].include?(action_name) if %w[GET HEAD OPTIONS].include?(request.request_method) + end + def index redirect_to(:action => 'show') end