Support the ongoing development of Laravel.io →
Configuration Requests Cache
Last updated 2 years ago.
0

Hello,

By default laravel enables "CSRF checking" on POST routes. If you are not passing a _token with your request then an exception is raised every time a request is made (and depending on your application this can trigger other methods, write log files, etc).

You can go to App/Http/Kernel.php and comment out the VerifyCsrfToken middleware.

Just an idea.

good luck

0

disable csrfToken in middleware..

کارواش هیوندای

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.