# Cookies not being set on 302 redirects

**URL:** <https://community.postman.com/t/cookies-not-being-set-on-302-redirects/5815>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [June 7, 2019, 1:03pm UTC](https://community.postman.com/t/cookies-not-being-set-on-302-redirects/5815 "2019-06-07T13:03:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jottawa](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jottawa](https://community.postman.com/u/jottawa)\
**Post date:** [June 7, 2019, 1:03pm UTC](https://community.postman.com/t/cookies-not-being-set-on-302-redirects/5815/1 "2019-06-07T13:03:42Z")

</div>

Hi,  
I have a GET request that makes multiple redirect calls (302s). It follows the redirects to the final 200 but it doesn’t save cookies being set by the redirects. Since I’m creating a script to simulate sign in of our app I need these cookies. I’ve searched far and wide and can’t find a solution.  
btw, I’m using your windows app not the chrome extension.

Thanks

---

<div class="post-metadata">

**Author:** ![shu\_ming](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@shu\_ming](https://community.postman.com/u/shu_ming)\
**Post date:** [July 24, 2019, 7:25am UTC](https://community.postman.com/t/cookies-not-being-set-on-302-redirects/5815/2 "2019-07-24T07:25:57Z")

</div>

I found the same issue for 302 redirect. The wired thing is that the cookie of some of 302 redirects is saved. But others are not.

---

<div class="post-metadata">

**Author:** ![serge](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@serge](https://community.postman.com/u/serge)\
**Post date:** [May 22, 2020, 2:47pm UTC](https://community.postman.com/t/cookies-not-being-set-on-302-redirects/5815/3 "2020-05-22T14:47:32Z")

</div>

Bump  
Also experiencing this issue.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [May 22, 2020, 2:53pm UTC](https://community.postman.com/t/cookies-not-being-set-on-302-redirects/5815/4 "2020-05-22T14:53:53Z")

</div>

Hey @serge,

Welcome to the community! 🚀

As the original question does not have a lot of detail about the issue, could you explain what you’re currently seeing please?

The more detail that you can provide, the easier it will be for others to offer solutions. If you can also include screenshots that would be awesome!

---

<div class="post-metadata">

**Author:** ![serge](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@serge](https://community.postman.com/u/serge)\
**Post date:** [May 22, 2020, 3:21pm UTC](https://community.postman.com/t/cookies-not-being-set-on-302-redirects/5815/5 "2020-05-22T15:21:42Z")

</div>

Trying to provide you the data to solve this issue. I found that the issue with the cookie not being set was that the domain contained a port (:). Removing the port successfully set the cookie during a 303 redirect!  
Thanks
