mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
Always send AJAX requests to the same domain as the current page
This commit is contained in:
parent
ccc0417a38
commit
7a6dad9237
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue