Include Scripts at the Collection Level #8395
Replies: 2 comments 5 replies
|
Added this to the backlog, but its priority could depend on multiple factors. |
0 replies
|
@ihexxa, is it released? Or is there any workaround I can use script for Collection/Folder level? |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions