laravel-caffeine icon indicating copy to clipboard operation
laravel-caffeine copied to clipboard

XSRF Header Support

Open LoganTFox opened this issue 1 year ago • 1 comments

It seems as though the package only accounts for a token to come through. I am using laravel with inertiajs which uses the XSRF header and cookie but it doesn't seem like that will work. Am I missing something in the documentation? Would it be possible to get the package updated to also check for that header?

https://laravel.com/docs/10.x/csrf#csrf-x-xsrf-token

LoganTFox avatar Mar 07 '24 16:03 LoganTFox

@LoganTFox would love to accept a PR for this. It would be perfect if you could test it in your environment to make sure it works.

mikebronner avatar Mar 07 '24 16:03 mikebronner

This should now be fixed in version 12.0.0. Please let me know if you encounter any issues! :)

mikebronner avatar Mar 12 '25 00:03 mikebronner