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.
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,