Answers for "in which folder csrf token stored laravel"

PHP
0

add csrf token laravel

<meta name="csrf-token" content="{{ csrf_token() }}" />

<script type="text/javascript">
$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});
</script>
Posted by: Guest on August-10-2021

Browse Popular Code Answers by Language