From 977deceb491728dcec86c0f478eb3587dd1e209b Mon Sep 17 00:00:00 2001 From: Pranav Date: Thu, 20 Mar 2025 21:29:59 -0700 Subject: [PATCH] fix: Instead of blocking every content type, block only json requests --- app/controllers/dashboard_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index 0f915ab8a..87dbedf1c 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -15,7 +15,7 @@ class DashboardController < ActionController::Base private def ensure_html_format - head :not_acceptable unless request.format.html? + head :not_acceptable if request.format.json? end def set_global_config