RTK Query and Laravel Sanctum: CSRF Token Mismatch (Request has cookie)
I'm implementing a Laravel API + React SPA with Sanctum authentication. With Sanctum, before requesting the actual login route, you need to send a request to /sanctum/csrf-cookie 'to initialize csrf protection'. Currently I have this RTK Query api: import {…