mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
net: Use a POST request for allowing certs temporarily.
This commit is contained in:
parent
6a6662195e
commit
2550600131
4 changed files with 28 additions and 20 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue