fix: Instead of blocking every content type, block only json requests

This commit is contained in:
Pranav
2025-03-20 21:29:59 -07:00
parent 359b992683
commit 977deceb49
+1 -1
View File
@@ -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