From c2647bc23ad6c7698fc3924540b467c437cf1aaf Mon Sep 17 00:00:00 2001 From: mattpass Date: Sat, 26 Sep 2020 08:33:39 +0100 Subject: [PATCH] Prefix terminal XHR endpoint with iceLoc --- terminal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminal.php b/terminal.php index 5d72dca..85255c8 100644 --- a/terminal.php +++ b/terminal.php @@ -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)); }