Set the X-Requested-With request header correctly for xdomain requests