Postman: Add request header in pre-request script
21 April 2022 (Updated 23 April 2022)
Add to Pre-request Script
for a collection:
pm.request.headers.add({
key: 'X-XSRF-TOKEN',
value: pm.globals.get('XSRF_TOKEN')
})
Tagged:
Misc
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment