Console Response Header Value, How to Retrieve?

This might work but I’m not confident :confused:

If you go to settings and disable “Automatically follow redirects”, then add this to the Tests:

const querystring = require('querystring');

let params = pm.response.headers.get('Location').split('?')

console.log(querystring.parse(`${_.last(params)}`).sssToken)

It’s probably not what you need as it wouldn’t complete the flow you need - I’m unsure have to get the headers from a redirected URL in an efficient way :frowning: