# Insomnia Plugin - Laravel Sanctum

Set the XSRF-TOKEN header in Laravel applications using Sanctum.

## Instructions

1. Add `/sanctum/csrf-cookie` endpoint to your Insomnia project to get the cookie first.
2. Add the `X-XSRF-TOKEN` header to your requests. As the value, set Laravel Sanctum Header (see screenshot).


![Alt text](insomnia-screen.png?raw=True)

## Attributions
Original code from `chivincent-rosetta/insomnia-plugin-laravel-csrf`, but repository no longer available. 

