What's the difference between firefox and chrome's $.post ()?

 $.post(url, JSON.stringify(send_data), function(data, ts){},"json");

 window.location.href = "http://" + localStorage.ServerIP;

Click the exit button and send send_data to the backend, then jump to ServerIP

the backend can receive send_data under chrome, but not

under Firefox.

Firefox can receive send_data

only if post is set to Synchronize.

is there any good way (besides setting Synchronize) to allow the frontend to send send_data before redirecting?

< hr >
            $.ajax({
                type:"post",
                url:url,
                async:false,
                data:JSON.stringify(send_data),
                dataType:"json",
                success:function(data){
                }
            });

change to this format to successfully jump + send data, why?

Nov.22,2021

success:function(data){
    window.location.href = "http://" + localStorage.ServerIP;
}
Menu