fix: Reverse Proxy support (#3173)
This commit is contained in:
parent
fc78f5a4e0
commit
a3ba700522
11 changed files with 33 additions and 32 deletions
|
|
@ -39,7 +39,7 @@
|
|||
let name = document.querySelector("#name-input").value;
|
||||
document.querySelector("#status").innerHTML = "";
|
||||
let b = JSON.stringify({pin: pin, name: name});
|
||||
fetch("/api/pin", {method: "POST", body: b})
|
||||
fetch("./api/pin", {method: "POST", body: b})
|
||||
.then((response) => response.json())
|
||||
.then((response) => {
|
||||
if (response.status.toString().toLowerCase() === "true") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue