# How Postman auto generates cookies from a domain?

**URL:** <https://community.postman.com/t/how-postman-auto-generates-cookies-from-a-domain/29153>\
**Category:** Help Hub\
**Tags:** cookies\
**Created:** [October 27, 2021, 7:09pm UTC](https://community.postman.com/t/how-postman-auto-generates-cookies-from-a-domain/29153 "2021-10-27T19:09:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael\_polonio](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@rafael\_polonio](https://community.postman.com/u/rafael_polonio)\
**Post date:** [October 27, 2021, 7:09pm UTC](https://community.postman.com/t/how-postman-auto-generates-cookies-from-a-domain/29153/1 "2021-10-27T19:09:54Z")

</div>

I’m executing a request on Node.JS that returns me an error, but in Postman i noticed that it works. The reason is that Postman auto generates a cookie and if I get this cookie generated and set in my Node JS code, it also works.

My question is: How postman do this? Can i do this in node js?

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/b/bef4051d616412dc07c5b79f192c9f331dcdd250.png)
