Browse Source

Mod_security2 BodyProcessor json compliance

TW - Vincent 1 year ago
parent
commit
ce025cf884
1 changed files with 4 additions and 1 deletions
  1. 4 1
      js/privatebin.js

+ 4 - 1
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