How to handle 302 response in ionic5.4.6

I want to capture the response headers of the 302 request

What have you tried so far?

Have you seen this…

I have tried this. Actually I am directly getting the response of the redirected Url instead of the original Url response

This isn’t directly possible.

How can i get the response header for 302 status code