net: Use a POST request for allowing certs temporarily.

This commit is contained in:
Josh Matthews 2020-06-09 12:50:08 -04:00
parent 6a6662195e
commit 2550600131
4 changed files with 28 additions and 20 deletions

View file

@ -14,11 +14,11 @@
if (bytes.length) {
button.onclick = function() {
let xhr = new XMLHttpRequest();
xhr.open('GET', 'chrome:allowcert?secret=${secret}&bytes=' + btoa(bytes));
xhr.open('POST', 'chrome:allowcert');
xhr.onloadend = function() {
location.reload(true);
};
xhr.send();
xhr.send("${secret}&" + btoa(bytes));
};
} else {
button.style.display = "none";