From b5783f7665f4a730625ed5697293aff609e94a20 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Sun, 9 Oct 2016 15:34:51 +0000 Subject: [PATCH] FSN#37985 Phonebook API werkte niet op IE11 sinds 'nosniff' svn path=/Website/branches/v2016.2/; revision=31012 --- APPL/API/get_phonebook_info.asp | 3 +++ APPL/API/phonebook_js.asp | 1 + APPL/Shared/Suggest/Suggest.inc | 3 +++ APPL/Shared/load_lcl.asp | 3 +++ 4 files changed, 10 insertions(+) diff --git a/APPL/API/get_phonebook_info.asp b/APPL/API/get_phonebook_info.asp index 9a50a17e0d..943dfc1608 100644 --- a/APPL/API/get_phonebook_info.asp +++ b/APPL/API/get_phonebook_info.asp @@ -53,7 +53,10 @@ var JSON_Result = true; } if (callback) + { + Response.ContentType = "application/javascript"; Response.Write(callback + "(" + JSON.stringify(result) + ")"); + } else Response.Write(JSON.stringify(result)); %> diff --git a/APPL/API/phonebook_js.asp b/APPL/API/phonebook_js.asp index 586d830c5b..781c187e3e 100644 --- a/APPL/API/phonebook_js.asp +++ b/APPL/API/phonebook_js.asp @@ -31,6 +31,7 @@ var EXPIRED_PASSWORD_OK = true; // performance var sitenoroot = proto + "://" + Request.ServerVariables("SERVER_NAME"); var site = sitenoroot + rooturl; + Response.ContentType = "application/javascript"; //lcl.buildClientLCL(); // LET OP: Geen FcltMgr.js en dus niet (clientside) zelflerend %> diff --git a/APPL/Shared/Suggest/Suggest.inc b/APPL/Shared/Suggest/Suggest.inc index 857adb3ff7..aaf191afbe 100644 --- a/APPL/Shared/Suggest/Suggest.inc +++ b/APPL/Shared/Suggest/Suggest.inc @@ -92,7 +92,10 @@ function WriteResult2(sql, params) jsonResult.checkExist = true; if (callback) + { + Response.ContentType = "application/javascript"; Response.Write(callback + "(" + JSON.stringify(jsonResult) + ")"); + } else Response.Write(JSON.stringify(jsonResult)); } diff --git a/APPL/Shared/load_lcl.asp b/APPL/Shared/load_lcl.asp index 9623cbc9d5..ac4ab2e454 100644 --- a/APPL/Shared/load_lcl.asp +++ b/APPL/Shared/load_lcl.asp @@ -80,7 +80,10 @@ LCL_Disable = 1; // wij zijn veel slimmer } if (callback) + { + Response.ContentType = "application/javascript"; Response.Write(callback + "(" + JSON.stringify(result) + ")"); + } else Response.Write(JSON.stringify(result)); %>