Skip to content

Commit c1e2f65

Browse files
authored
Update addtocart.phtml
Remove multipart/form-data specification for content-type causing Missing boundary error
1 parent 5786298 commit c1e2f65

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

view/frontend/templates/script/component/product/addtocart.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ use Magento\Framework\View\Element\Template;
3333
fetch(form.action, {
3434
method: 'POST',
3535
headers: {
36-
'X-Requested-With': 'XMLHttpRequest',
37-
'Content-Type': 'multipart/form-data; charset=UTF-8',
36+
'X-Requested-With': 'XMLHttpRequest'
3837
},
3938
body: data
4039
}).finally(function () {

0 commit comments

Comments
 (0)