How to set header for all requests in Postman
4 March 2024 (Updated 4 March 2024)
Click on a folder/collection.
Go to the Pre-request Script
tab and add something like:
pm.request.headers.add({
key: 'X-API-KEY', value:
pm.globals.get('API_KEY')
});

Tagged:
Postman
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment