How to capture the headers of a 401 response or request? The server is returning this 401 to me since it needs a summary authentication, I need to create a hash to send it to the server from the MD5 algorithm, and I need to get the nonce from the 401 response to be able to calculate the MD5 algorithm, any ideas on how extract the headers the WWW-Authenticate nonce ? any ideas ?
I am using the JsSip.js library work with react js or js
I leave the answer in an image that should censor some things