Why is AJAX returning HTTP status code 0?

后端 未结 20 2789
野的像风
野的像风 2020-11-22 06:39

For some reason, while using AJAX (with my dashcode developed application) the browser just stops uploading and returns status codes of 0. Why does this happen?

相关标签:
20条回答
  • 2020-11-22 07:33

    In our case, the page link was changed from https to http. Even though the users were logged in, they were prevented from loading with AJAX.

    0 讨论(0)
  • 2020-11-22 07:33

    I think I know what may cause this error.

    In google chrome there is an in-built feature to prevent ddos attacks for google chrome extensions.

    When ajax requests continuously return 500+ status errors, it starts to throttle the requests.

    Hence it is possible to receive status 0 on following requests.

    0 讨论(0)
提交回复
热议问题