diff --git a/templates/migrate.html b/templates/migrate.html index 640b561..41c18af 100644 --- a/templates/migrate.html +++ b/templates/migrate.html @@ -108,7 +108,7 @@ console.log("User:", userinfoData.name) console.log("Sub:", userinfoData.sub); document.getElementById("text").innerText = "Authenticating, " + userinfoData.name; - fetch("https://cat.hectabit.org/api/migrate", { + fetch("/api/migrate", { method: "POST", headers: { "Content-Type": "application/json" diff --git a/templates/oauth.html b/templates/oauth.html index 0e12ad5..fa1193e 100644 --- a/templates/oauth.html +++ b/templates/oauth.html @@ -122,7 +122,7 @@ preferreduser = getCookie("prefuser") } document.getElementById("text").innerText = "Authenticating, " + userinfoData.name; - fetch("https://cat.hectabit.org/api/oauth", { + fetch("/api/oauth", { method: "POST", headers: { "Content-Type": "application/json"