REL-0.12 Evade cross domain requests via POST

This commit is contained in:
cytopia 2017-09-27 14:42:42 +02:00
parent d8e60644e8
commit bf0bc75b90
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

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