My application uses Cookie-based authentication. I have a Collection with a bunch of folders and an “Authorization” request in the root folder.
I would like the “Authorization” request to run always first (without pushing it a folder).
I saw there’s
postman.setNextRequest(requestName) but that won’t work for the very first request?
I tried adding postman.setNextRequest(‘Authorization’); to the Pre-request script of my entire Collection - also didn’t work. (plus it will do the authorization at each request which is something I don’t wont anyway)
is there a way to ensure a certain request is always run first?