Postman set-cookie not working with the domain

Viewed 742

I want to controll authentication with cookies. And In my browser working successfully. But When I tried to test with postman, Postman doesn't add cookie to new request.

  1. step - I login and response header like that:

enter image description here

But the response cookies tab like that:

enter image description here

And manage cookies window like that:

enter image description here

  1. step - I send a request to unprotected router and I get unauthorized error.

This error started today. I don't remember making any changes to the settings. Why Im getting this type error. How can I solve this?

1 Answers

I also had this problem, the fix is to remove the secure flag in the cookie when sending cookies from localhost as cookies set as secure can only be sent over HTTPS.

Related