From c1e2f65c9eaa36be366285fc47db14f7247e5e5a Mon Sep 17 00:00:00 2001 From: dadolun95 Date: Tue, 23 Sep 2025 14:20:50 +0200 Subject: [PATCH] Update addtocart.phtml Remove multipart/form-data specification for content-type causing Missing boundary error --- .../templates/script/component/product/addtocart.phtml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/view/frontend/templates/script/component/product/addtocart.phtml b/view/frontend/templates/script/component/product/addtocart.phtml index 5410362..c3e3e2f 100644 --- a/view/frontend/templates/script/component/product/addtocart.phtml +++ b/view/frontend/templates/script/component/product/addtocart.phtml @@ -33,8 +33,7 @@ use Magento\Framework\View\Element\Template; fetch(form.action, { method: 'POST', headers: { - 'X-Requested-With': 'XMLHttpRequest', - 'Content-Type': 'multipart/form-data; charset=UTF-8', + 'X-Requested-With': 'XMLHttpRequest' }, body: data }).finally(function () {