Removing cookies in the mailbox programmatically

I am using Newman and the Windows Postman application to test the REST API. It stores a session cookie between requests, allowing me to access information requiring authorization without providing the correct permission. I would like to be able to remove the cookie in the pre-request section of the script. Is it possible? I know how to delete cookies using the GUI with questions such as How to delete a cookie session in Postman? and the official postman documentation, but that doesn’t help me deal with this issue.

+5
source share

Source: https://habr.com/ru/post/1270166/


All Articles