Support the ongoing development of Laravel.io →
Input Session Validation
Last updated 1 year ago.
0

I'm hoping this gets a response as well. We've experienced this in L4.2 and now L5.0.

A small percentage of our visitors appear to have cookies disabled, so their form posts are met with TokenMismatchExceptions. We use jQuery ajax posts to an API route but I believe you can simulate this on any CSRF-protected form.

I'd try to capture the laravel_session cookie value and manually pass that in as a form parameter, registering the session from the destination controller. However I think we're losing some laravel security benefits by registering sessions based on query parameters.

Otherwise we will need to either remove the CSRF middeware entirely or simply accept that cookie-less users can't post public forms.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

WebDev999 webdev999 Joined 26 Jun 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.