mythz/jquip — Issue #17: add X-Requested-With header
Author: fhahn
Created: 2012-01-05 17:37:01+00:00
State: open

JQuery and most other Javascript frameworks add the X-Requested-With="'XMLHttpRequest" header to each Ajax request [1] , so it's possible to check if the request was made via Ajax on the server side.

[1] https://github.com/jquery/jquery/blob/master/src/ajax/xhr.js#L92