- Open thunder client, switch to
Envand create a local environment. - Add a test to your collection by navigating to the
Teststab, then selectSet Env Variable, set query tocookie.xsrf-tokenand value to{{XSRF-TOKEN, local}} - In the
Headerstab, add an header namedX-XSRF-TOKENwith value{{XSRF-TOKEN | urlDecode}}. - Create a request to
/sanctum/csrf-cookieto 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