Is this layer accessible for ajax?
1 Answer
The ajax code gives you access to the XMLHttpRequest object, which has APIs ("getResponseHeader") to check header elements.
Specifically, the first argument to the "complete" callback is the "xhr" object.
$.ajax({ // ... complete: function(xhr, status) { if (xhr.getResponseHeader("X-Hi-Stackoverflow")) { // ... } } });