skip to Main Content

Laravel Logout Using AJAX – Jquery ajax

I'm trying to write an AJAX script that will log me out of Laravel using a POST request: $.ajax({ headers: { 'X-CSRF-Token': "{{ csrf_token() }}" }, type: "POST", url: '/logout', success: function() { window.location.replace('https://portal.nchinc.com/?logout=timeout'); } }); The result is I…

VIEW QUESTION
Back To Top
Search