I imported a collection from Postman and got a problem: Cookie retrieval works differently than in Postman.
I have a request that returns a Location header and a redirect occurs. The response I get contains the Cookie ‘SESSION’ I need, and also the Location header again. The last redirect does not contain the Cookie.
console.log(decodeURIComponent(pm.cookies.get(“SESSION”)));
This code from Post Processor returns the correct Cookie value “SESSION” from the second redirect in Postman, but in Apidog it returns “undefined”. Even in the interface, on the Cookies tab, the response does not have the Cookie “SESSION”, although it is listed in all Cookies from all redirects on the Actual Request tab.