From 2e58ed117f4849a6a6d6e005d01c2ca50c046ecc Mon Sep 17 00:00:00 2001 From: Pascal Robert Date: Mon, 6 Aug 2012 04:27:20 -0400 Subject: [PATCH] Add x-requested-with in requests for the JSONRPCClient --- Frameworks/Ajax/Ajax/WebServerResources/jsonrpc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Frameworks/Ajax/Ajax/WebServerResources/jsonrpc.js b/Frameworks/Ajax/Ajax/WebServerResources/jsonrpc.js index a43e40aac51..50d732b6051 100644 --- a/Frameworks/Ajax/Ajax/WebServerResources/jsonrpc.js +++ b/Frameworks/Ajax/Ajax/WebServerResources/jsonrpc.js @@ -778,6 +778,7 @@ JSONRpcClient.prototype._sendRequest = function (req) try { http.setRequestHeader("Content-type", "text/plain"); + http.setRequestHeader("x-requested-with", "XMLHttpRequest"); } catch(e) {