# I have to change cookies for every loop of request

**URL:** <https://community.postman.com/t/i-have-to-change-cookies-for-every-loop-of-request/37458>\
**Category:** Help Hub\
**Tags:** cookies\
**Created:** [July 22, 2022, 6:12am UTC](https://community.postman.com/t/i-have-to-change-cookies-for-every-loop-of-request/37458 "2022-07-22T06:12:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacecraft-cosmolog8](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@spacecraft-cosmolog8](https://community.postman.com/u/spacecraft-cosmolog8)\
**Post date:** [July 22, 2022, 6:12am UTC](https://community.postman.com/t/i-have-to-change-cookies-for-every-loop-of-request/37458/1 "2022-07-22T06:12:45Z")

</div>

I have a request and want to run for diiferent data from csv file and at same time I want to change cookies for every request  
I have added this in my prescript  
cookieJar.unset(“[https://www.website.com/](https://www.website.com/)” , ‘XX’);  
cookieJar.set(“[https://www.website.com/](https://www.website.com/)”,{name:‘XX’,value:data.XX,httpOnly: true, domain:“[https://www.website.com/](https://www.website.com/)”},(error, cookies)=\> {console.log(“error”+error) });  
I am not getting any error however cookies are not getting set in cookie manager and cant see it in request header as well. I have also added my domain in allowlist .Please help.
