Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

pass csrf token in ajax laravel

$.ajax({
                    headers: {
                            'X-CSRF-TOKEN': "{{csrf_token()}}",
                        },
                    url : "{{route('')}}",
                    type : "GET",
                    success : function(response){
                        
                    }
                });
 
PREVIOUS NEXT
Tagged: #pass #csrf #token #ajax #laravel
ADD COMMENT
Topic
Name
7+6 =