Skip to content

Commit 2793f25

Browse files
committed
Fix for missing formKey
1 parent 2ab729f commit 2793f25

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

view/base/templates/script/ajax-queue.phtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ if ($interval < 10) {
9393
return;
9494
}
9595

96-
const formKey = MageCookies.get('form_key');
96+
let formKey = MageCookies.get('form_key');
97+
if (!formKey) {
98+
formKey = LOKI_FORM_KEY;
99+
}
100+
97101
await fetch('<?= $escaper->escapeUrl($componentUtil->getPostUrl(
98102
)) ?>?form_key=' + formKey + '&isAjax=true', {
99103
method: 'POST',

0 commit comments

Comments
 (0)