Update webauthn.js
This commit is contained in:
@@ -156,7 +156,9 @@ class WebAuthn {
|
|||||||
* @returns {Promise<Response>}
|
* @returns {Promise<Response>}
|
||||||
*/
|
*/
|
||||||
#fetch(data, route, headers = {}) {
|
#fetch(data, route, headers = {}) {
|
||||||
return fetch(route, {
|
|
||||||
|
let url = new URL(route, window.location.origin).href;
|
||||||
|
return fetch(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
credentials: this.#includeCredentials ? "include" : "same-origin",
|
credentials: this.#includeCredentials ? "include" : "same-origin",
|
||||||
redirect: "error",
|
redirect: "error",
|
||||||
|
|||||||
Reference in New Issue
Block a user