Why does Internet Explorer not send HTTP post body on Ajax call after failure?

前端 未结 6 872
暗喜
暗喜 2020-12-07 08:26

We are able to reliably recreate the following scenario:

  1. Create a small HTML page that makes AJAX requests to a server (using HTTP POST)
  2. Disconnect fr
6条回答
  •  失恋的感觉
    2020-12-07 08:50

    I had a similar problem today when using $.ajax and was able to fix it by setting async to false.

    $.ajax({
      async: false, 
      url: '[post action url]',
      data: $form.serialize(),
      type: 'POST',
      success: successCallback
    });

提交回复
热议问题