36

I'm using Postman application to test APIs in Ubuntu 16.04.

I don't need Postman to store cookies after API request. I only find options to delete cookies manually for each request. Does anyone know how to completely disable it?

Vinoth Kumar
  • 603
  • 1
  • 10
  • 22
  • You can remove cookies in a pre-script. See: https://stackoverflow.com/a/60114110/1121497 – Ferran Maylinch Feb 19 '20 at 10:51
  • 1
    Also notice that you need to whitelist the domain to access cookies: https://learning.postman.com/docs/postman/sending-api-requests/cookies/#whitelisting-domains-for-programmatic-access-of-cookies – Ferran Maylinch Feb 19 '20 at 12:11
  • I have left a feature request on their forums [here](https://community.postman.com/t/feature-request-allow-disabling-redirects-and-cookies-globally/28296) for disabling cookies globally. If you need different settings to the defaults, consider making a "template" request that has the settings you need and duplicating it each time. – GrayedFox Sep 30 '21 at 10:18

4 Answers4

28

Go to "settings" tab and disable "cookie jar" and "follow redirects".

Thus, Postman will act as fetch in node-js for instance. It will acts as it is the first attempt to login (or whatever) and you'll see a fresh response every time.

Alexandre Palo
  • 309
  • 3
  • 8
  • 32
    To be more clear: this is about the "Settings" tab of a request, not the general "Postman Settings" Section. And YES, it needs to be done for each request. – Serban Jul 15 '21 at 10:15
10

I believe this is still an open issue on the project and the only way that i’ve been able to do, is delete them through the UI.

Danny Dainton
  • 23,069
  • 6
  • 67
  • 80
1

You can use version 6.1.3, which had a bug in it which prevented to send cookies on subsequent request. See https://community.getpostman.com/t/postman-no-longer-send-cookie-with-subsequent-requests/1723

But it's hard to get your hand on that version, it is not on https://www.getpostman.com/downloads/release-notes because they only show major versions 7.

Paul Verschoor
  • 1,479
  • 1
  • 14
  • 27
1

Check out the settings section within the project.

enesad
  • 11
  • 2
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/32364105) – vimuth Aug 05 '22 at 06:54
  • Instead of linking to an image, describe what the image says in the text of your answer. Embed the image directly if you have enough reputation. – rgettman Aug 05 '22 at 21:40