[UPDATE] Use this instead: https://gist.github.com/sadiqsalau/32b054dc42b4b0582e296b43efc7c496
You will need to follow these procedures to use the filter.
Consult docs: https://github.com/rangav/thunder-client-support
- Create an environment and attach it to your collection.
- Add a test to your collection by navigating to the
Tests
tab. SelectSet Env Variable
, set query tocookie.xsrf-token
and value to{{XSRF-TOKEN}}
- Add the file
csrf-filter.js
to your scripts. - In the
Pre-Run
tab, select custom filter and choosesetCSRFToken
Note: You might need to reopen thunder client tab to select the custom filter.