DEV Community

Discussion on: How do we access response headers in Javascript ?

Collapse
 
jordanfinners profile image
Jordan Finneran • Edited

It would depend what you are using on the frontend to make the request.
If you are using the fetch API (native in all browsers except IE) you can access the response headers
developer.mozilla.org/en-US/docs/W...

I would probably look for a monitoring tool to do this for you though, like datadog or AWS Cloudwatch or Azure Applications Insights.