I have to change cookies for every loop of request

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/” , ‘XX’);
cookieJar.set(“https://www.website.com/”,{name:‘XX’,value:data.XX,httpOnly: true, domain:“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.