In my case, using nginx and PHP the problem was that the request URL was too long in one XHR call, and that caused all other XHR calls on that page to fail as well. The problem went away after I switched that long query string from GET to POST