Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

laravel csrf token ajax post

$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #csrf #token #ajax #post
ADD COMMENT
Topic
Name
5+5 =