From 7a6dad92373188c3b04e8be6cc3529bab7842f91 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 30 Dec 2023 21:51:30 +0900 Subject: [PATCH] Always send AJAX requests to the same domain as the current page --- common/js/xml_handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/js/xml_handler.js b/common/js/xml_handler.js index fdb356841..ca85cc9dd 100644 --- a/common/js/xml_handler.js +++ b/common/js/xml_handler.js @@ -187,7 +187,7 @@ // Send the AJAX request. try { $.ajax({ - url : url, + url : XE.URI(request_uri).pathname(), type : "POST", dataType : "json", data : params, @@ -344,7 +344,7 @@ $.ajax({ type: "POST", dataType: "json", - url: request_uri, + url: XE.URI(request_uri).pathname(), data: params, processData: (action !== 'raw'), headers : headers,