Include Scripts at the Collection Level #8395
Unanswered
cesar19004
asked this question in
Ideas
Replies: 1 comment
-
Added this to the backlog, but its priority could depend on multiple factors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we can use pre-request and post-request scripts for individual requests or for all requests within a folder. However, it would be great to also define scripts at the root collection level that apply to all requests within that collection.
A useful scenario for this feature would be automatically checking and refreshing CSRF tokens, re-authenticating when necessary, or signing requests—without the need to maintain the same script in each folder or, worse, in each individual request.
While it's possible to reorganize the project into a single folder to use folder-level scripts, having scripts at the collection level would provide more freedom in the folder structure.
Beta Was this translation helpful? Give feedback.
All reactions