Answers for "htmx csrf token"

8

csrf token method

$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});
Posted by: Guest on October-29-2020
1

csrf token html form

{% csrf_token %}
Posted by: Guest on November-24-2020

Browse Popular Code Answers by Language