diff --git a/html/includes/forms/callback-clear.inc.php b/html/includes/forms/callback-clear.inc.php index 38d990639..f0fb77576 100644 --- a/html/includes/forms/callback-clear.inc.php +++ b/html/includes/forms/callback-clear.inc.php @@ -11,6 +11,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: text/plain'); if(is_admin() === false) { die('ERROR: You need to be admin'); diff --git a/html/includes/forms/callback-statistics.inc.php b/html/includes/forms/callback-statistics.inc.php index 36a2c4d9d..1b25df57b 100644 --- a/html/includes/forms/callback-statistics.inc.php +++ b/html/includes/forms/callback-statistics.inc.php @@ -11,6 +11,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: text/plain'); if(is_admin() === false) { die('ERROR: You need to be admin'); diff --git a/html/includes/forms/notifications.inc.php b/html/includes/forms/notifications.inc.php index 187f2ee2c..71c615085 100644 --- a/html/includes/forms/notifications.inc.php +++ b/html/includes/forms/notifications.inc.php @@ -21,6 +21,7 @@ * @package LibreNMS * @subpackage Notifications */ +header('Content-type: application/json'); $status = 'error'; $message = 'unknown error'; diff --git a/html/includes/forms/parse-template-rules.inc.php b/html/includes/forms/parse-template-rules.inc.php index b5800b50f..199daa559 100644 --- a/html/includes/forms/parse-template-rules.inc.php +++ b/html/includes/forms/parse-template-rules.inc.php @@ -11,6 +11,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: application/json'); if (is_admin() === false) { die('ERROR: You need to be admin'); diff --git a/html/includes/forms/query-ripenccapi.inc.php b/html/includes/forms/query-ripenccapi.inc.php index 0e21b12fe..e9af57177 100644 --- a/html/includes/forms/query-ripenccapi.inc.php +++ b/html/includes/forms/query-ripenccapi.inc.php @@ -9,6 +9,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: application/json'); $status = 'error'; $message = 'unknown error'; diff --git a/html/includes/forms/schedule-maintenance.inc.php b/html/includes/forms/schedule-maintenance.inc.php index d601116ee..661c9ba49 100644 --- a/html/includes/forms/schedule-maintenance.inc.php +++ b/html/includes/forms/schedule-maintenance.inc.php @@ -11,6 +11,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: application/json'); if (is_admin() === false) { die('ERROR: You need to be admin'); diff --git a/html/includes/forms/test-transport.inc.php b/html/includes/forms/test-transport.inc.php index 05b4dcfdd..2486c71ca 100644 --- a/html/includes/forms/test-transport.inc.php +++ b/html/includes/forms/test-transport.inc.php @@ -11,6 +11,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: application/json'); if (is_admin() === false) { die('ERROR: You need to be admin'); diff --git a/html/includes/forms/token-item-create.inc.php b/html/includes/forms/token-item-create.inc.php index 61810287a..7e573b2ac 100644 --- a/html/includes/forms/token-item-create.inc.php +++ b/html/includes/forms/token-item-create.inc.php @@ -11,6 +11,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: text/plain'); if(is_admin() === false) { die('ERROR: You need to be admin'); diff --git a/html/includes/forms/token-item-disable.inc.php b/html/includes/forms/token-item-disable.inc.php index 1f962c020..f05796127 100644 --- a/html/includes/forms/token-item-disable.inc.php +++ b/html/includes/forms/token-item-disable.inc.php @@ -11,6 +11,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: text/plain'); if(is_admin() === false) { die('ERROR: You need to be admin'); diff --git a/html/includes/forms/token-item-remove.inc.php b/html/includes/forms/token-item-remove.inc.php index 4d494672c..4c241bedc 100644 --- a/html/includes/forms/token-item-remove.inc.php +++ b/html/includes/forms/token-item-remove.inc.php @@ -11,6 +11,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: text/plain'); if(is_admin() === false) { die('ERROR: You need to be admin'); diff --git a/html/includes/forms/update-notes.inc.php b/html/includes/forms/update-notes.inc.php index 3750e59d9..521a485bf 100644 --- a/html/includes/forms/update-notes.inc.php +++ b/html/includes/forms/update-notes.inc.php @@ -9,6 +9,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ +header('Content-type: application/json'); $status = 'error'; $message = 'unknown error'; diff --git a/html/includes/forms/widget-settings.inc.php b/html/includes/forms/widget-settings.inc.php index fabe6c4aa..10ed3ad57 100644 --- a/html/includes/forms/widget-settings.inc.php +++ b/html/includes/forms/widget-settings.inc.php @@ -21,6 +21,7 @@ * @package LibreNMS * @subpackage Widgets */ +header('Content-type: application/json'); $status = 'error'; $message = 'unknown error';