Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

419 Unknown status, csrf token required, ajax csrf setup

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