From 15bb05694fb9183cc89289a5b8564b734266ee06 Mon Sep 17 00:00:00 2001 From: Kerim Date: Wed, 21 Jun 2023 02:46:10 +0500 Subject: [PATCH] add cart test --- themes/nurgul/layouts/mainN.htm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/nurgul/layouts/mainN.htm b/themes/nurgul/layouts/mainN.htm index db88a70..34fc87a 100755 --- a/themes/nurgul/layouts/mainN.htm +++ b/themes/nurgul/layouts/mainN.htm @@ -100,7 +100,10 @@ function onStart(){ async: true, url: 'https://nurgul.com.tm/app/api/customer/cart/add/' + String(prodId), type: 'POST', - headers: { Authorization: 'Bearer {{nurgulToken}}' }, + headers: { + Authorization: 'Bearer {{nurgulToken}}', + Accept: 'application/json' + }, processData: false, contentType: false, data: JSON.stringify(product),