Send AJAX calls on http or https

This commit is contained in:
cytopia 2018-04-30 20:48:39 +02:00
parent 6453954565
commit c7b777dfb2
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -123,7 +123,7 @@
//console.log(vhost);
}
}
xhttp.open('POST', 'http://'+vhost+'.<?php echo loadClass('Httpd')->getTldSuffix().loadClass('Httpd')->getPort();?>/devilbox-api/status.json', true);
xhttp.open('POST', '//'+vhost+'.<?php echo loadClass('Httpd')->getTldSuffix().loadClass('Httpd')->getPort();?>/devilbox-api/status.json', true);
xhttp.send();
// Timeout to abort in 1 second