Support the ongoing development of Laravel.io →
posted 9 years ago
Security
Last updated 1 year ago.
0
Solution

Solved. The reason is that Request::header(); unable to interpret the parameter with underscore. So after I changed to

$http.defaults.headers.common['csrfToken'] = CSRF_TOKEN;

It works! Thanks to rvs1977 from (https://github.com/laravel/framework/issues/1655#issuecomment-...)

Thank you!

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

xhsiow xhsiow Joined 15 Apr 2014

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.