Currently, I am making an AJAX call and trying to access the response headers.
This is my code snippet:
var xhr = new XMLHttpRequest;
xhr.getAllResponseHeaders();
When I check the console, all I see is '[native code]'. Can anyone provide me with guidance on how I can actually view the headers? This question is tailored to my specific issue and not a broad duplicate of other solutions that have been suggested.