Added support for X-Requested-With header