How set environment token from cookies section?

Write test and need set environment token from Cookies
Try:
pm.environment.set(“Token”, response.Cookies.csrftoken);
But it’s not work

Postman

Thanks for any help

Try something like

pm.environment.set('token', pm.cookies.get('csrftoken'));

2 Likes

Despa, thanks you it’s work)