diff --git a/html/includes/forms/ack-alert.inc.php b/html/includes/forms/ack-alert.inc.php
index 351825fb7..a89c4d694 100644
--- a/html/includes/forms/ack-alert.inc.php
+++ b/html/includes/forms/ack-alert.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');
$alert_id = mres($_POST['alert_id']);
$state = mres($_POST['state']);
diff --git a/html/includes/forms/alert-templates.inc.php b/html/includes/forms/alert-templates.inc.php
index 74fda1b8c..4b1ef9c12 100644
--- a/html/includes/forms/alert-templates.inc.php
+++ b/html/includes/forms/alert-templates.inc.php
@@ -21,6 +21,7 @@
* @package LibreNMS
* @subpackage Alerts
*/
+header('Content-type: text/plain');
if(is_admin() === false) {
die('ERROR: You need to be admin');
diff --git a/html/includes/forms/attach-alert-template.inc.php b/html/includes/forms/attach-alert-template.inc.php
index 9303b4eaa..b38936255 100644
--- a/html/includes/forms/attach-alert-template.inc.php
+++ b/html/includes/forms/attach-alert-template.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/delete-alert-rule.inc.php b/html/includes/forms/delete-alert-rule.inc.php
index 5c3e15744..78b758f59 100644
--- a/html/includes/forms/delete-alert-rule.inc.php
+++ b/html/includes/forms/delete-alert-rule.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/delete-alert-template.inc.php b/html/includes/forms/delete-alert-template.inc.php
index c700a351a..1892785a3 100644
--- a/html/includes/forms/delete-alert-template.inc.php
+++ b/html/includes/forms/delete-alert-template.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/parse-alert-map.inc.php b/html/includes/forms/parse-alert-map.inc.php
index 075de355b..8ded88953 100644
--- a/html/includes/forms/parse-alert-map.inc.php
+++ b/html/includes/forms/parse-alert-map.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/parse-alert-rule.inc.php b/html/includes/forms/parse-alert-rule.inc.php
index 286fb35c8..376776acd 100644
--- a/html/includes/forms/parse-alert-rule.inc.php
+++ b/html/includes/forms/parse-alert-rule.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/parse-alert-template.inc.php b/html/includes/forms/parse-alert-template.inc.php
index 2b8bb2e56..08eb2ba1b 100644
--- a/html/includes/forms/parse-alert-template.inc.php
+++ b/html/includes/forms/parse-alert-template.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/sensor-alert-reset.inc.php b/html/includes/forms/sensor-alert-reset.inc.php
index 2c027e647..46c1fc976 100644
--- a/html/includes/forms/sensor-alert-reset.inc.php
+++ b/html/includes/forms/sensor-alert-reset.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');
// FUA
diff --git a/html/includes/forms/sensor-alert-update.inc.php b/html/includes/forms/sensor-alert-update.inc.php
index 16c5742a6..d03024480 100644
--- a/html/includes/forms/sensor-alert-update.inc.php
+++ b/html/includes/forms/sensor-alert-update.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');
// FUA
diff --git a/html/includes/forms/update-alert-rule.inc.php b/html/includes/forms/update-alert-rule.inc.php
index 261e30062..1bd575081 100644
--- a/html/includes/forms/update-alert-rule.inc.php
+++ b/html/includes/forms/update-alert-rule.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');