skip to Main Content

Ajax ignoring URL – Jquery ajax

I try to make an ajax request through JQuery triggering an onClick event, but when it sends the AJAX request I receive: PATCH http://localhost:8000/courses 405 (Method Not Allowed) (Current page) Because it doesn't get the URL with the id HTML…

VIEW QUESTION

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