mikebronner / laravel-caffeine

Keeping Your Laravel Forms Awake.
https://genealabs.com/docs/laravel-caffeine/
MIT License
921 stars 83 forks source link

XSRF Header Support #151

Open LoganTFox opened 5 months ago

LoganTFox commented 5 months ago

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

mikebronner commented 5 months ago

@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.