From a339d88a2e1f6a5081cf354e2284d017dbd5661f Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 25 May 2025 16:47:17 +0900 Subject: [PATCH] Don't set X-AJAX-Compat header when a request is made from Rhymix.ajax() --- common/js/common.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/js/common.js b/common/js/common.js index ae07e9484..ee59e72d3 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -431,13 +431,10 @@ Rhymix.ajax = function(action, params, success, error) { } */ - // Add CSRF token and AJAX compatibility hint + // Add a CSRF token. const headers = {}; if (action !== null) { headers['X-CSRF-Token'] = getCSRFToken(); - if (!params['_rx_ajax_compat']) { - headers['X-AJAX-Compat'] = 'JSON'; - } }; // Send the AJAX request