NetworkError: Failed to execute 'send' on 'XMLHttpRequest'

前端 未结 4 2170
我寻月下人不归
我寻月下人不归 2021-01-01 18:45

I\'m trying to do a POST ajax request to a server hosted locally on my laptop but I can\'t seem to get any information back. When I click a button on my site (localhost), I

4条回答
  •  时光说笑
    2021-01-01 19:11

    I was having the same problem, with an identical error message. In my case it was caused by the server setting a Feature-Policy header with sync-xhr: none. Removing this directive fixed the problem.

提交回复
热议问题