SOME TIMES there is no X-Requested-With header, sometimes there is.
I checked in firebug and found that, don\'t know why.
So when I use requ
I was just having the same problem myself, and I fixed it by ensuring there was a trailing slash after my url. So instead of:
$.get('/example/url')
use:
$.get('example/url/')
Looks like it's been a while since you posted this but maybe it will help!