mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-12 03:26:50 +01:00
Prefix terminal XHR endpoint with iceLoc
This commit is contained in:
@@ -82,8 +82,9 @@ sendCmd = function(command) {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Send the XHR request
|
||||
xhr.open("POST","lib/terminal-xhr.php?csrf="+parent.ICEcoder.csrf,true);
|
||||
xhr.open("POST",parent.ICEcoder.iceLoc + "/lib/terminal-xhr.php?csrf="+parent.ICEcoder.csrf,true);
|
||||
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||||
xhr.send('command='+encodeURIComponent(command));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user