By MiddleWare

2015-06-17 11:34:46 8 Comments

I read the manual of sending request with cookie with postman:

As the packaged app runs in a sandbox separately from the browser, it can not access cookies set inside the browser. This restriction can also be overcome using the Interceptor extension. Postman routes all requests through the Interceptor, which then uses the browser context to send requests. Cookies set inside the browser are automatically attached to your requests. Read the original blog post on Interceptor.

Once the interceptor is enabled, you can also send cookies from Postman. Just set the "Cookie" header, and the cookie will be sent with the request. You can also get access to cookies that are available when the response is returned. Check out out blog post for more

So I downloaded the interceptor for google chrome, and it enable.

Also, I add the following to postman: Cookie JSESSIONID=daczcz36789

When I look at the network I notice that the Cookie is not sent.

What I do wrong?


@Vaha 2019-03-18 14:02:59

I used postman chrome extension until it became deprecated. Chrome extension also less usable and powerful then native postman application. So, it became not very convenient to use chrome extension. I have found next approach:

  1. copy any request in chrome/any other browser as CURL request (image 1)
  2. import to postman copied request (image 2)
  3. save imported request in postman's list

copy curl request image 1

enter image description here image 2

@tryingToLearn 2018-11-02 07:25:33

Based @RBT's answer above, I tried Postman native app and want to give a couple of additional details.

In the latest postman desktop app, you can find the cookies option on the extreme right:

enter image description here

You can see the cookies for your localhost (these cookies are linked with the cookies in your chrome browser, although the app is running natively). Also you can set the cookies for a particular domain too.

enter image description here

@RBT 2017-12-07 10:26:45

Chrome apps including Postman are being deprecated as mentioned here. Now the recommendation is to go for native apps which are not detached from the sandboxed environment of the browser.

Quoting from the feature page:


COOKIES: The native apps let you work with cookies directly. Unlike the Chrome app, no separate extension (Interceptor) is needed.

BUILT-IN PROXY: The native apps come with a built-in proxy that you can use to capture network traffic.

RESTRICTED HEADERS: The latest version of the native apps let you send headers like Origin and User-Agent. These are restricted in the Chrome app. DON'T FOLLOW

REDIRECTS OPTION: This option exists in the native apps to prevent requests that return a 300-series response from being automatically redirected. Previously, users needed to use the Interceptor extension to do this in the Chrome app.

MENU BAR: The native apps are not restricted by the Chrome standards for the menu bar.

POSTMAN CONSOLE: The latest version of the native apps has a built-in console, which allows you to view the network request details for API calls.

So once you install the native Postman app from here you don't have to go looking for additional prerequisites like interceptor app just to check your cookies. I didn't have to change a single setting after installing the native postman app and all my cookies were visible in Cookies tab as shown below:

enter image description here

@tryingToLearn 2018-11-02 07:26:10

This saved my day.

@Fangming 2017-10-28 20:44:02

Enable intercepter in this way

Basically it is a chrome plug in. After installing the extention, you also need to make sure the extention is enabled from chrome side.

enter image description here

@KRISHNA R 2017-01-06 06:04:28

Even after toggling it did not work. I closed and restarted the browser after adding the postman plugin, logged into the site to generate cookies afresh and then it worked for me.

@lukens 2016-01-23 10:35:49

I was having issues getting this working (on OSX). I'd followed the instructions provided by Postman, and the advice here, and cookies were still not being set.

However, the post above saying "So if you enable interceptor only in browser - it will not work" alerted me to the fact that the interceptor could be enabled in the browser as well as in Postman itself. I thought I'd try switching it on in the browser, to see if that helped, and it did. I then switched it off in the browser, and it still worked.

So, if you are having issues getting it working, I'd suggest trying switching it on in browser at least once, as, for me, this seemed to trigger it into life. I think you will still need it switch on in Postman too.

@Paul Corda 2016-09-07 12:15:42

On OS X 10.11.6 toggling the interceptor addon on the Chrome browser did it for me. Thanks a lot!

@carbocation 2016-11-26 19:05:33

Just wanted to confirm that turning the interceptor addon in Chrome on, then back off, also worked for me on OSX 10.11.6.

@GuoX 2015-12-09 12:24:37

You should enable your interceptor extension man manually, it locate in the top-right of your postman window. There are several buttons, find the interceptor button and enable it, then you can send cookies after set Cookie field in your request headers.

@xxldoctor 2015-09-07 10:10:57

You can enable Interceptor in browser and in Postman separately. For send/recieve cookies you should enable Interceptor in Postman. So if you enable interceptor only in browser - it will not work. Actually you don't need enable Interceptor in browser at all - if you don't want to flood your postman history with unnecessary requests.

@Lavekush Agrawal 2017-06-26 07:28:28

how can I enable Interceptor in Postman ?

@Sagar Nayak 2017-07-01 08:00:30

how can i mimic this in my code. i want to send and receive cookie. otherwise server is not authenticating me.

@Sam 2017-09-21 18:52:14

I'm having the same problem and setting the intercepter off then back on did NOT help me. Postman support was no help either. They told me to use the desktop version of Postman which is giving me the same response. When I click under "Cookies", I do see the cookie issued by my site but if I check my API call in Fiddler, I don't see the cookie my site issued being sent.

Related Questions

Sponsored Content

13 Answered Questions

[SOLVED] How do I set/unset a cookie with jQuery?

8 Answered Questions

[SOLVED] How to use Postman Interceptor

22 Answered Questions

[SOLVED] Cookie blocked/not saved in IFRAME in Internet Explorer

4 Answered Questions

[SOLVED] Why is it common to put CSRF prevention tokens in cookies?

6 Answered Questions

[SOLVED] Local Storage vs Cookies

0 Answered Questions

Passing cookies between requests in Postman runner

  • 2017-04-26 18:34:43
  • Tadhg
  • 584 View
  • 3 Score
  • 0 Answer
  • Tags:   cookies postman

9 Answered Questions

[SOLVED] How do HttpOnly cookies work with AJAX requests?

0 Answered Questions

How to get secure cookie in postman using interceptor

8 Answered Questions

[SOLVED] How do browser cookie domains work?

Sponsored Content