Always send AJAX requests to the same domain as the current page

This commit is contained in:
Kijin Sung 2023-12-30 21:51:30 +09:00
parent ccc0417a38
commit 7a6dad9237

View file

@ -187,7 +187,7 @@
// Send the AJAX request. // Send the AJAX request.
try { try {
$.ajax({ $.ajax({
url : url, url : XE.URI(request_uri).pathname(),
type : "POST", type : "POST",
dataType : "json", dataType : "json",
data : params, data : params,
@ -344,7 +344,7 @@
$.ajax({ $.ajax({
type: "POST", type: "POST",
dataType: "json", dataType: "json",
url: request_uri, url: XE.URI(request_uri).pathname(),
data: params, data: params,
processData: (action !== 'raw'), processData: (action !== 'raw'),
headers : headers, headers : headers,