We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce6091c commit 2bf4f89Copy full SHA for 2bf4f89
1 file changed
hypha/static_src/javascript/passkeys.js
@@ -16,7 +16,8 @@ window.hypha = window.hypha || {};
16
window.hypha.passkeys = (function () {
17
let _conditionalAbortController = null;
18
function getCsrfToken() {
19
- const headers = JSON.parse(document.body.dataset.hxHeaders || "{}");
+ const hxheaders = document.body.getAttribute("hx-headers") || "{}";
20
+ const headers = JSON.parse(hxheaders);
21
return headers["X-CSRFToken"] || "";
22
}
23
0 commit comments