I am doing an AJAX call and attempting to retrieve the response headers.
MY code:
var xmh = new XMLHttpRequest;
xmh.getAllResponseHeaders
I am trying to view the headers in the console and what I am getting back is '[native code]'. Please could someone advise me on how to view the headers? This question is specific and not a generalised one like the proposed solutions that someone has mentioned as a duplicate.