Trouble with Ajax account creation returning response 301 - any solutions?

Hi, This is my code for register customer from Ajax but it’s having response 301

var data = jQuery(this).serialize();

    console.log(data);
      $.ajax({
        type: 'POST',
        url: "/account",
        data: data ,
        dataType: 'html',
        async: true,
        success: function (data,textStatus, request) {
          if( textStatus == 'success'){
            // window.location.href = '/pages/thank-you';
          }else {
            location.reload();
          }
        }
    });

Here Response:

Can I look at it on your shop?

Write me on PM