error: [Errno 32] Broken pipe

烂漫一生 提交于 2019-11-28 10:56:26

You haven't posted any code, but this is probably because you have triggered the Ajax request on a button submit but haven't prevented the default action. So the Ajax request is made, but by the time it comes to return the data, the browser has already requested the next page anyway, so there is nothing to receive it.

I have solved this problem by adding this:

self.send_header("Access-Control-Allow-Origin", "*")

Because I found some error on sending post request page:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is there

Then I got this solution and solved above problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!