From 96aa9b1b348fa76cdf8cfef3986ea0c888e71685 Mon Sep 17 00:00:00 2001 From: Roberto Hidalgo Date: Wed, 4 Jan 2023 00:11:17 -0600 Subject: [PATCH] so close! --- internal/server/static/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/server/static/admin.js b/internal/server/static/admin.js index b0b9057..2608e9f 100644 --- a/internal/server/static/admin.js +++ b/internal/server/static/admin.js @@ -182,7 +182,7 @@ function userFromForm(form) { async function UpdateUser(form) { const user = userFromForm(form) - let response = await webauthn.withAuth(host + form.getAttribute("action"), { + let response = await webauthn.withAuth(form.getAttribute("action"), { credentials: "include", method: "POST", body: JSON.stringify(user), @@ -201,7 +201,7 @@ async function UpdateUser(form) { async function CreateUser(form) { const user = userFromForm(form) - let response = await webauthn.withAuth(host + form.getAttribute("action"), { + let response = await webauthn.withAuth(form.getAttribute("action"), { credentials: "include", method: "POST", body: JSON.stringify(user),