Set a non-standard request header to identify XHR requests on the server side.
Updated Version.