0

Is this layer accessible for ajax?

1 Answer 1

3

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")) { // ... } } }); 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.