- Open thunder client, switch to
Env
and create a local environment. - Add a test to your collection by navigating to the
Tests
tab, then selectSet Env Variable
, set query tocookie.xsrf-token
and value to{{XSRF-TOKEN, local}}
- In the
Headers
tab, add an header namedX-XSRF-TOKEN
with value{{XSRF-TOKEN | urlDecode}}
. - Create a request to
/sanctum/csrf-cookie
to refresh CSRF Token if it expires
Last active
April 1, 2024 17:48
-
-
Save sadiqsalau/32b054dc42b4b0582e296b43efc7c496 to your computer and use it in GitHub Desktop.
Thunder Client Laravel CSRF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment