Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ajax request header laravel

<script type="text/javascript">
$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ajax #request #header #laravel
ADD COMMENT
Topic
Name
4+5 =