错误:302响应码json

      productName  = (typeof(productName) != 'undefined' && productName != '') ? productName : '';
      userId       = (typeof(userId) != 'undefined' && userId != '') ? userId : '';
      settingsData = (typeof(settingsData) != 'undefined' && settingsData != '') ? settingsData : '';


             $.ajax({
                              type    : "GET",
                              dataType: "json",
                              url     : baseUrl + url,
                              data    : {
                                   productColumnName : productName,
                                   targetId          : userId,
                                   settingsData      : settingsData
                               }
                           }).done(function( response ) {
                               checkLogout(response);
                               location.reload();
                           }).fail(function() {
                               location.reload();
                           });

I have call url to renew the page but i get 302 get response

METHOD = GET STATUS = 302

Thanks in advance !!

It isn't completely clear what your question is. The 302 is a redirect code (meaning the that web page didn't download in a completely normal fashion). This means that the URL has an intermediate step before the packets are downloaded. If you own and control the first URL that is called, then that URL is redirecting to another URL. Maybe you need to construct the URL differently to bypass the intermediate URL. But this assumes that a 302 code is fatal to what you are trying to accomplish.

productName  = (typeof(productName) != 'undefined' && productName != '') ? productName : '';
      userId       = (typeof(userId) != 'undefined' && userId != '') ? userId : '';
      settingsData = (typeof(settingsData) != 'undefined' && settingsData != '') ? settingsData : '';


             $.ajax({
                              type    : "GET",
                              dataType: "json",
                              url     : baseUrl + url,
                              data    : {
                                   productColumnName : productName,
                                   targetId          : userId,
                                   settingsData      : settingsData
                               }
                           }).done(function( response ) {
                               checkLogout(response);
                               location.reload();
                           }).fail(function() {
                               location.reload();
                           });

I got it URL was wrong due to that it gives 302