How to resolve a 403 Forbidden Error on a new site?

abzalali
Shopify Partner
9 0 2

Hi, thanks for your time, First of all, it's a new site and no plan activate currently. I'm trying to post the number of product shows per page. My code is as below:

$('#paginateBy').on('change', function(){  
      var val = $(this).val();
	  $.ajax({
      type: "POST",
      url: '/cart.js',
      data: {"attributes[pagination]": val},
      success: function(d){
        window.location.reload();
        },
      dataType: 'json'
      });
});

I'm getting this error:

abzalali_0-1656775206690.png

Any help would be much appreciated.

 

Thanks in Advance.

Replies 0 (0)