How to use Postman Interceptor
Google ChromeCookiesGoogle Chrome-DevtoolsPostmanGoogle Chrome Problem Overview
Ever since I upgraded to Postman 0.9.6 I can't replicate user sessions because chrome doesn't allow postman to get user cookies. However, they have decided to "work around" this issue by created another plugin called Postman Interceptor that routes your postman request and grabs the user cookies. They wrote a blog post about this wonderful tool here: http://blog.getpostman.com/index.php/2014/02/11/postman-v0-9-6-access-cookies-and-restricted-headers-plus-better-testing/
However, I can't seem to figure out how to get this thing to work. I have been trying for an hour now, and it still won't see my request as a logged in user
Google Chrome Solutions
Solution 1 - Google Chrome
This worked for me:
- Install Postman
- Install the Interceptor
- Activate the Interceptor by toggling the switch:
- Activate the Interceptor in Postman by clicking on the Interceptor Button on the top right (looks like a sattelite)
Solution 2 - Google Chrome
To save someone having to dig through all the comments on related questions, here's a quick overview of the state of Postman in 2018:
Standalone Postman (Current)
If you have a satellite dish icon you are using standalone Postman:
Postman Interceptor does not appear to work with the standalone Postman (as of January 2018).
When you turn the satellite dish on, you are starting a proxy (default port: 5555
). If you update your browser and/or OS proxy settings to point to localhost:5555
, the requests made through the proxy will show up in Postman, similar to how it worked with the old Interceptor.
You can read more about this feature here.
Postman Chrome App (Deprecated)
If you have a weird satellite thing icon you are using the old Chrome App:
This should work with the interceptor. See the instructions in nozzleman's answer if you are having trouble getting it to work.
tl;dr You need to use the Postman Chrome App if you want to use the Interceptor extension.
Solution 3 - Google Chrome
Make sure to turn the Interceptor on in chrome and proxy on in Postman. Also ensure install correct extension! Oddly, it seems there are 2 postman Interceptor:
- Interceptor 1 <- Same name but not from getpostman.com
- Interceptor 2 <- from correct source
Then it should work
Solution 4 - Google Chrome
The issue for me was that I had multiple Chrome profiles, and requests with a non-main profile wasn't working, even if the extension was enabled. Once I switched to the primary profile and ensured the extension was enabled there, it started intercepting properly.
Solution 5 - Google Chrome
For native app POSTMAN(windows, macOS or linux) make sure you have installed the INTERCEPTOR Bridge:
https://community.getpostman.com/t/interceptor-integration-for-postman-native-apps/5290
Solution 6 - Google Chrome
Postman Interceptor integration is now available for Postman Native App ( > v7.14.0
).
- Download Interceptor from Chrome Web Store. If you already have the extension, kindly ensure that the version is
v0.2.26
or later. - Navigate to the Postman app and click the satellite icon in the upper-right corner to Capture requests and cookies with Postman. Install Interceptor Bridge either from Cookies tab or Requests tab with source toggled to Interceptor.
- Confirm Interceptor is ready to use by checking that the
INTERCEPTOR CONNECTED
status is green. You can now capture browser requests and sync browser cookies directly into Postman App. Learn more here.
- Kindly note that you might need to restart Chrome before you see
INTERCEPTOR CONNECTED
status if you're using Postman App for Windows
> Note: If you face any issues while installing Interceptor Bridge, please check the troubleshooting doc. You can find the relevant information regarding Interceptor here.
Solution 7 - Google Chrome
There are two ways, and both works:
- postman chrome app + postman interceptor plugin
Deprecated but more convenient, just a few clicks are needed.
- postman native app
Officially recommended by not very user friendly. You have to manually change the browser/system proxy setting.
Solution 8 - Google Chrome
As some of them mentioned here Postman Chrome app is deprecated, you can not use it to intercept your API requests anymore. Instead, Postman has released a beta version "Postman Canary", which works better.
Please follow these links to set up the canary and interceptor. https://community.getpostman.com/t/interceptor-integration-for-postman-native-apps/5290
Solution 9 - Google Chrome
Postman released Interceptor support for the packaged app for Mac / Windows / Linux in v7.2.2 in June 2019.
> 7.2.2: Added support for cookie syncing via the Interceptor
More about that here since the docs aren't updated yet: https://community.getpostman.com/t/interceptor-integration-for-postman-native-apps/5290
Solution 10 - Google Chrome
I was able to work without Interceptor,just by disabling SSL
I was using older version of postman [Postman Chrome App (Deprecated)] in which I had to use interceptor,Basically I wanted to pass cookies as apart of Header. Now when I tried to use New Standalone/Desktop Postman (Current tool),I got below error
To solve this error I just had to "OFF" SSL certificate verification.