diff --git a/themes/nurgul/partials/scripts/addToCart.htm b/themes/nurgul/partials/scripts/addToCart.htm index b63be71..02f705e 100755 --- a/themes/nurgul/partials/scripts/addToCart.htm +++ b/themes/nurgul/partials/scripts/addToCart.htm @@ -22,9 +22,11 @@ processData: false, contentType: false, type: 'POST', - beforeSend: function (xhr) { - xhr.setRequestHeader('Authorization', 'Bearer {{token}}'); - xhr.setRequestHeader('Content-Type', 'application/json'); + headers: { + 'Authorization': 'Bearer {{token}}', + 'Content-Type': 'application/json' + }, + beforeSend: function () { $('#loader_add').show(); }, success: function (data) {