Postman enables you to capture and sync cookies from a web browser or another client application to the Postman cookie jar. You can sync cookies using either the Postman proxy or Postman Interceptor at any time, without having to start a proxy or Interceptor session.
Once configured, Postman continuously captures cookies from the browser or client applications. For the domains you specify, captured cookies are automatically synced to the Postman cookie jar. You can then use the cookies when sending requests from Postman.
You can also capture requests and cookies during a proxy or Interceptor session. Learn more about capturing requests and cookies with the Postman proxy or Postman Interceptor.
Postman Interceptor is a browser extension that captures network requests from a web browser and saves them to Postman. You can use Interceptor to continuously sync the cookies in your browser to the Postman cookie jar. This option works with either the Postman desktop app or the Postman web app.
The Postman cookie jar always has the latest value for a given cookie. If you need to observe how cookie values change during a request flow, start an Interceptor session.
To sync cookies using Postman Interceptor, do the following:
Install the Postman Interceptor extension by following the steps in Install Interceptor.
Select Cookies in the Postman footer.
In the Cookies window, select the Sync Cookies tab. If you're using the Postman desktop app, select the Interceptor option.
If you get the message "No connection to Interceptor", make sure your browser is open and the Interceptor extension is installed. If you're using the Postman desktop app, try closing any browser tabs where the Postman web app is open.
Enter one or more Domains. Postman will sync cookies for the specified domains to the Postman cookie jar.
Adding a domain automatically syncs cookies for its subdomains as well. For example, adding the domain
example.com
will also sync cookies fromm.example.com
. To sync cookies for the domain only, you can addhttps://
in front of the domain, such ashttps://example.com
.
Select Start Syncing. Cookies for the domains you specified are automatically synced from your browser to Postman.
You can use the Postman Interceptor extension to sync cookies from your browser to the Postman cookie jar, without starting an Interceptor session. This option works with either the Postman desktop app or the Postman web app.
To sync cookies from the Interceptor extension:
Install the Postman Interceptor extension by following the steps in Install Interceptor.
Open the Interceptor extension by selecting the Interceptor icon in your browser's toolbar.
Select the Sync Cookies tab.
Make sure the message Ready to sync appears at the bottom of the Interceptor window. If the message Interceptor disconnected appears, make sure either the Postman desktop app is running or the Postman web app is open in your browser.
Enter one or more Domains. Postman will sync cookies for the specified domains to the Postman cookie jar.
Adding a domain automatically syncs cookies for its subdomains as well. For example, adding the domain
example.com
will also sync cookies fromm.example.com
. To sync cookies for the domain only, you can addhttps://
in front of the domain, such ashttps://example.com
.
Select Start Syncing. Cookies for the domains you specified are automatically synced from your browser to Postman.
A proxy acts as an intermediary between a client application (like a mobile app) and a server (like an API). You can use Postman's built-in proxy to capture any cookies passing between a client and a server. The captured cookies are synced to the Postman cookie jar for later use. This option doesn't work with the Postman web app, so make sure to use the Postman desktop app.
The Postman cookie jar always has the latest value for a given cookie. If you need to observe how cookie values change during a request flow, start a proxy session.
To sync cookies using the Postman proxy, do the following:
Open the Postman desktop app and select Cookies in the Postman footer.
In the Cookies window, select the Sync Cookies tab and select the Proxy option.
Enter a Port number. The default value is 5559
. You will use this port number when configuring clients.
You can't change the port number while the proxy is enabled.
Turn on Enable Postman as a proxy.
Enter one or more Domains. Postman will sync cookies for the specified domains to the Postman cookie jar.
Adding a domain automatically syncs cookies for its subdomains as well. For example, adding the domain
example.com
will also sync cookies fromm.example.com
. To sync cookies for the domain only, you can addhttps://
in front of the domain, such ashttps://example.com
.
Select Start Syncing.
Last modified: 2024/05/14
Additional resources
Videos
Blog posts