Why is AJAX returning HTTP status code 0?

后端 未结 20 3199
野的像风
野的像风 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:28

    I had the same problem, and it was related to XSS (cross site scripting) block by the browser. I managed to make it work using a server.

    Take a look at: http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/282972/why-am-i-getting-xmlhttprequest.status0

提交回复
热议问题