Prefix terminal XHR endpoint with iceLoc

This commit is contained in:
mattpass
2020-09-26 08:33:39 +01:00
parent 74fcd33c97
commit c2647bc23a

View File

@@ -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));
}