From ce025cf884c5e24ae152fc178dea83dbe6aac91e Mon Sep 17 00:00:00 2001 From: TW - Vincent <315173+touchweb-vincent@users.noreply.github.com> Date: Tue, 8 Jul 2025 13:43:46 +0200 Subject: [PATCH] Mod_security2 BodyProcessor json compliance --- js/privatebin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index c6d2c772..042c9ddb 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -4792,7 +4792,10 @@ jQuery.PrivateBin = (function($, RawDeflate) { * @readonly * @enum {Object} */ - const ajaxHeaders = {'X-Requested-With': 'JSONHttpRequest'}; + const ajaxHeaders = { + 'X-Requested-With': 'JSONHttpRequest', + 'Content-Type': 'application/json' + }; /** * called after successful upload