Suppose we have an xhr 'POST' request that returns a 'redirect' status code. In this case, the browser sends an additional xhr 'GET' to the given URL. I'm not sure who is executing this chain of calls: the browser itself or the js library (using MooTools).
The problem is that the second GET request is not recognized by the xhr server: It does not have an "X-Requested-With" header containing "XMLHttpRequest"
The problem appears only in Firefox, but not in Webkit. So, suppose this is not due to a js library error.
Does anyone have any ideas how to fix this?
source
share