Insomnia Plugin - Laravel Sanctum
Set the XSRF-TOKEN header in Laravel applications using Sanctum.
Instructions
- Add
/sanctum/csrf-cookie
endpoint to your Insomnia project to get the cookie first. - Add the
X-XSRF-TOKEN
header to your requests. As the value, set Laravel Sanctum Header (see screenshot).
Attributions
Original code from chivincent-rosetta/insomnia-plugin-laravel-csrf
, but repository no longer available.