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