diff --git a/html/ajax_dash.php b/html/ajax_dash.php
index d2e2b0a622..0ffc580679 100644
--- a/html/ajax_dash.php
+++ b/html/ajax_dash.php
@@ -55,5 +55,5 @@ $response = array(
'html' => $output,
'title' => $title,
);
-
+header('Content-type: application/json');
echo _json_encode($response);
diff --git a/html/ajax_form.php b/html/ajax_form.php
index 999a43a4dc..3851d5b4f2 100644
--- a/html/ajax_form.php
+++ b/html/ajax_form.php
@@ -29,6 +29,7 @@ if (!$_SESSION['authenticated']) {
if (preg_match('/^[a-zA-Z0-9\-]+$/', $_POST['type']) == 1) {
if (file_exists('includes/forms/'.$_POST['type'].'.inc.php')) {
+ header('Content-type: application/json');
include_once 'includes/forms/'.$_POST['type'].'.inc.php';
}
}
diff --git a/html/ajax_rulesuggest.php b/html/ajax_rulesuggest.php
index cee773a2fc..850658939a 100644
--- a/html/ajax_rulesuggest.php
+++ b/html/ajax_rulesuggest.php
@@ -62,7 +62,7 @@ function levsort($base, $obj) {
}
-
+header('Content-type: application/json');
$obj = array(array('name' => 'Error: No suggestions found.'));
$term = array();
$current = false;
diff --git a/html/ajax_search.php b/html/ajax_search.php
index e9ddad36f5..cb8d012a33 100644
--- a/html/ajax_search.php
+++ b/html/ajax_search.php
@@ -19,7 +19,7 @@ $bgp = array();
if (isset($_REQUEST['search'])) {
$search = mres($_REQUEST['search']);
-
+ header('Content-type: application/json');
if (strlen($search) > 0) {
$found = 0;
diff --git a/html/ajax_table.php b/html/ajax_table.php
index f16cc2da97..c3513a68a8 100644
--- a/html/ajax_table.php
+++ b/html/ajax_table.php
@@ -36,6 +36,7 @@ $response = array();
if (isset($id)) {
if (file_exists("includes/table/$id.inc.php")) {
+ header('Content-type: application/json');
include_once "includes/table/$id.inc.php";
}
}