7

I have a React JS application where I send a GET request with axios. In the browser, in the Response Headers section, when I send the request I get Content-Disposition: attachment;filename="image123.pdf", but when I try to get this in React, I don't get any field with this name. So when I try to access the response.headers['content-disposition'], I don't get anything.

Is it possible to read this header key using React JS using axios?

JSON Derulo
  • 9,780
  • 7
  • 39
  • 56
Asking
  • 3,487
  • 11
  • 51
  • 106
  • Does this answer your question? [Axios get access to response header fields](https://stackoverflow.com/questions/37897523/axios-get-access-to-response-header-fields) – LW001 Sep 13 '21 at 10:11
  • I'm getting the same issue, did you find any solution? I can see the content-disposition in the API response from network tab but when I make Axios request i'm not getting it in my response header, – Dhruvin Prajapati Aug 17 '23 at 08:00

0 Answers0