AJAX To Send CSRF Token Authenticity
To send CSRF (XSRF) token authenticity in all AJAX requests:
To send CSRF (XSRF) token authenticity in all AJAX requests:
$.ajaxSetup({
headers: {
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
}});
No comments:
Post a Comment