diff --git a/resources/js/webauthn.js b/resources/js/webauthn.js index 409421a..74c4e02 100644 --- a/resources/js/webauthn.js +++ b/resources/js/webauthn.js @@ -156,8 +156,8 @@ class WebAuthn { * @returns {Promise} */ #fetch(data, route, headers = {}) { - - let url = new URL(route, window.location.origin).href; + const url = new URL(route, window.location.origin).href; + return fetch(url, { method: "POST", credentials: this.#includeCredentials ? "include" : "same-origin",