I have the strangest issue! This only happens on MS Edge and only for certain users at a certain client. In summary when an ajax call is made to the server, instead of the response data variable holding the server response it is holding some source code from the platform instead. Code below…I’m not sure how this could be possible ?!? We cannot reproduce ourselves – but we can screen share with the user and confirm the issue
Ajax code:
console.log("Calling: " + api);
$.ajax({
url: api,
cache: true,
error: function (XMLHttpRequest, textStatus, errorThrown) {
displayExceptionNotification("Error on call to " + api + ": " + errorThrown);
}
}).then(function (theData) {
// Use the server response
}
The variable ‘theData’ does not hold the JSON data coming back from the server instead it holds the contents of a totally unrelated .js file?!? We know this because we can remote view/share with the user, use the inspect/debug tool and hover over to see the value of ‘theData’ – see attached screenshot. I cannot come up with any reason why this would be – but of course when the follow on code runs instead of getting the expected JSON it’s getting a bunch of raw js source code and failing..
Any ideas?