add the X-Requested-With header to fix AngularJs's ajax request
merge #204