I want to test my graphql API. And it requires an access token. Normally I just run the front-end in local and take the access token from a request header and paste it inside postman.
Then I found Postman allows to sync and capture cookies: Sync cookies using Postman Interceptor and the Postman proxy | Postman Learning Center
My idea was to create a script in the healtcheck to write the captured cookie in and env vars so that all of the other endpoints can work.
But following the docs: Create and capture cookies using Postman's cookie manager | Postman Learning Center
When I used const cookieJar = pm.cookies.jar();
I got an error because cookies
was undefined
. I couldn’t find any documentation about this issue.
I use a Mac with Apple silicon. With Postman Version 11.0.5. A Graphql API. With local domains (ex. dev.localhost)
Any idea what it could be? Or any troubleshooting suggestions?